Browse files

[locale] OSX is built with 'generic' support for stdc++ locale(). Fix…

…es issues with unicode characters not uppercasing (e.g. the 'Videos' label in French on Confluence home screen).
  • Loading branch information...
1 parent 8dd07c9 commit b1c83308bd595e08b546d5db50fbde045efc0cba Jonathan Marshall committed Dec 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/LangInfo.cpp
4 xbmc/LangInfo.cpp
@@ -156,8 +156,8 @@ void CLangInfo::CRegion::SetGlobalLocale()
// decimal separator is changed depending of the current language
// (ie. "," in French or Dutch instead of "."). This breaks atof() and
// others similar functions.
-#if defined(__FreeBSD__)
- // on FreeBSD libstdc++ is compiled with "generic" locale support
+#if defined(__FreeBSD__) || defined(TARGET_DARWIN_OSX)
+ // on FreeBSD and darwin libstdc++ is compiled with "generic" locale support
if (setlocale(LC_COLLATE, strLocale.c_str()) == NULL
|| setlocale(LC_CTYPE, strLocale.c_str()) == NULL)

0 comments on commit b1c8330

Please sign in to comment.