summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-22 02:21:52 +0200
committerEike Rathke <erack@redhat.com>2013-09-22 02:53:47 +0200
commit6fa84d196834e041550ec4de426865b8a6038cfa (patch)
tree0c0019b507e07e70d09ebad88feb80a33707ecb0 /i18nlangtag
parent036cf17cac1d4e8843cb49b67d3c588362d190ca (diff)
in canonicalize() an unknown LangID is temporary
Change-Id: I4ae0f04f6ba5d6d0f9668595adf0b6865a34d6ef
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 7ceb37bc57ed..fd148892cf01 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -1103,7 +1103,7 @@ bool LanguageTagImpl::canonicalize()
if (!mbInitializedLangID)
{
convertLocaleToLang( false);
- if (bTemporaryLocale)
+ if (bTemporaryLocale || mnLangID == LANGUAGE_DONTKNOW)
bTemporaryLangID = true;
}
if (mnLangID != LANGUAGE_DONTKNOW && mnLangID != LANGUAGE_SYSTEM)