Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1887 from jmarshallnz/locale_fixes

[locale] OSX is built with 'generic' support for stdc++ locale().
  • Loading branch information...
commit 748bd2acd9f0b542bee48e8fb7bf3307ebe6f07e 2 parents faae6fa + b1c8330
@jmarshallnz jmarshallnz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/LangInfo.cpp
View
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)
{
Please sign in to comment.
Something went wrong with that request. Please try again.