summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18npool/source/isolang/inunx.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/i18npool/source/isolang/inunx.cxx b/i18npool/source/isolang/inunx.cxx
index 778446a505f3..005421c76c18 100644
--- a/i18npool/source/isolang/inunx.cxx
+++ b/i18npool/source/isolang/inunx.cxx
@@ -99,10 +99,7 @@ static void getPlatformSystemLanguageImpl( LanguageType& rSystemLanguage,
if ( osl_getProcessLocale(&procLocale) == osl_Process_E_None )
{
- rtl::OUString rLang( procLocale->Language );
- rtl::OUString rCountry( procLocale->Country );
-
- nLang = LanguageTag( rLang, rCountry ).getLanguageType();
+ nLang = LanguageTag( *procLocale ).getLanguageType();
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
rSystemLanguage = nLang;
#ifdef DEBUG