summaryrefslogtreecommitdiff
path: root/lingucomponent/source/lingutil/lingutil.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-01-09 16:48:52 +0100
committerEike Rathke <erack@redhat.com>2013-01-09 16:59:47 +0100
commit241ccc2568dd685d224f8a2b051c3e3a018d9400 (patch)
treeda12883cfc55e669e9fff14452b74c1825f4eff3 /lingucomponent/source/lingutil/lingutil.cxx
parenta0bf71323741c5c58b77651fe656c73419dbf09f (diff)
resolved fdo#58503 restore awkward handling of empty locale for legacy
Partly reverts d7a5ec62e91ce3dc5b784815254218f16181f676 An empty locale was treated as LANGUAGE_NONE, effectively being interpreted as absence or undetermined or multiple or all depending on context. Restore this behavior as it was an undocumented feature of the API. Change-Id: If4b1641e776d10dea0d3037f7a62725c2b8d612c
Diffstat (limited to 'lingucomponent/source/lingutil/lingutil.cxx')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index 194f0b753f73..8754442e471f 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -216,7 +216,7 @@ void MergeNewStyleDicsAndOldStyleDics(
{
LanguageType nLang = LanguageTag( aIt2->aLocaleNames[0] ).getLanguageType();
- if (nLang == LANGUAGE_DONTKNOW || nLang == LANGUAGE_NONE)
+ if (nLang == LANGUAGE_DONTKNOW || linguistic::LinguIsUnspecified( nLang))
{
OSL_FAIL( "old style dictionary with invalid language found!" );
continue;