From 30556d4cd5650d1e06984d3549319a73f170b566 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 1 May 2013 17:49:19 +0000 Subject: Some minor cleanup/polish... --- intern/locale/boost_locale_wrapper.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'intern/locale') diff --git a/intern/locale/boost_locale_wrapper.cpp b/intern/locale/boost_locale_wrapper.cpp index bc902ac661e..1b75c74c57b 100644 --- a/intern/locale/boost_locale_wrapper.cpp +++ b/intern/locale/boost_locale_wrapper.cpp @@ -62,22 +62,20 @@ void bl_locale_set(const char *locale) try { if (locale && locale[0]) { _locale = gen(locale); - std::locale::global(_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); #else _locale = gen(""); - std::locale::global(_locale); #endif } + std::locale::global(_locale); // Note: boost always uses "C" LC_NUMERIC by default! - /* Generate the locale string (useful to know which locale we are actually using in case of "default" one). */ + // Generate the locale string (useful to know which locale we are actually using in case of "default" one). #define LOCALE_INFO std::use_facet(_locale) locale_str = LOCALE_INFO.language(); -- cgit v1.2.3