Merge pull request #381 from hghwng/master
Fix compilation on Android.
diff --git a/fmt/format.h b/fmt/format.h
index 65ad328..0f471cc 100644
--- a/fmt/format.h
+++ b/fmt/format.h
@@ -2812,7 +2812,10 @@
}
case 'n': {
unsigned num_digits = internal::count_digits(abs_value);
- fmt::StringRef sep = internal::thousands_sep(std::localeconv());
+ fmt::StringRef sep = "";
+#ifndef ANDROID
+ sep = internal::thousands_sep(std::localeconv());
+#endif
unsigned size = static_cast<unsigned>(
num_digits + sep.size() * ((num_digits - 1) / 3));
CharPtr p = prepare_int_buffer(size, spec, prefix, prefix_size) + 1;