OSX/locale: a further cleanup

This commit is contained in:
Jens Verwiebe
2013-03-04 10:31:01 +00:00
parent 4fd2230755
commit 4cfa28b5ed
2 changed files with 1 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ void bl_locale_set(const char *locale)
}
else {
#ifdef __APPLE__
extern const char *user_locale; // pulled from Ghost_SystemCocoa
std::string locale_osx = user_locale + std::string(".UTF-8");
_locale = gen(locale_osx.c_str());
std::locale::global(_locale);

View File

@@ -43,10 +43,6 @@ void bl_locale_set(const char *locale);
const char *bl_locale_get(void);
const char *bl_locale_pgettext(const char *msgctxt, const char *msgid);
#ifdef __APPLE__
extern const char *user_locale; // pulled from Ghost_SystemCocoa
#endif
#ifdef __cplusplus
}
#endif