From 5f26b5da2871cc5f562231af9d2062fb18df1ca5 Mon Sep 17 00:00:00 2001 From: Hugh Wang Date: Tue, 13 Sep 2016 10:34:54 +0800 Subject: [PATCH] Fix compilation on Android. --- fmt/format.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 65ad328b..0f471cc4 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -2812,7 +2812,10 @@ void BasicWriter::write_int(T value, Spec spec) { } 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( num_digits + sep.size() * ((num_digits - 1) / 3)); CharPtr p = prepare_int_buffer(size, spec, prefix, prefix_size) + 1;