Skip to content

Instantly share code, notes, and snippets.

@rogerhub
Created November 6, 2014 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogerhub/9fb66eb0e5037f78f084 to your computer and use it in GitHub Desktop.
Save rogerhub/9fb66eb0e5037f78f084 to your computer and use it in GitHub Desktop.
CPPCMS Patch for ICU format ambiguous definition
Index: booster/lib/locale/src/icu/formatter.cpp
===================================================================
--- booster/lib/locale/src/icu/formatter.cpp (revision 2283)
+++ booster/lib/locale/src/icu/formatter.cpp (working copy)
@@ -58,7 +58,7 @@
virtual string_type format(int64_t value,size_t &code_points) const
{
icu::UnicodeString tmp;
- icu_fmt_->format(value,tmp);
+ icu_fmt_->format(::int64_t(value),tmp);
code_points=tmp.countChar32();
return cvt_.std(tmp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment