diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-05 22:11:55 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-05 22:12:28 +0200 |
commit | 2803e5c1e7112882003c3e2301f8e28f3dc2b6b7 (patch) | |
tree | 3d609c5cc29d28c1908ba0f606906b4696faa732 | |
parent | b26aaf5f64853ad2085a73bf762826dbc2a40f94 (diff) |
document why the test fails and is disabled
Change-Id: I17bb169f14d225b970014ab26a7f1d9d0d1b0af8
-rw-r--r-- | i18nlangtag/qa/cppunit/test_languagetag.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx index 03c266531358..93506fb3d598 100644 --- a/i18nlangtag/qa/cppunit/test_languagetag.cxx +++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx @@ -444,9 +444,15 @@ void TestLanguageTag::testAllTags() } #if USE_LIBLANGTAG - // 'zh-yue-HK' uses extlang and should be preferred 'yue-HK' - // Disable until internal vs liblangtag is sorted out. + // 'zh-yue-HK' uses redundant 'zh-yue' and should be preferred 'yue-HK' #if 0 + /* XXX Disabled because liblangtag in lt_tag_canonicalize() after replacing + * 'zh-yue' with the preferred 'yue' does: + * "If the language tag starts with a primary language subtag that is also + * an extlang subtag, then the language tag is prepended with the extlang's + * 'Prefix'." + * Primary language 'yue' is also extlang 'yue' for which the prefix + * happens to be 'zh' ... so the result is 'zh-yue-HK' again. */ { OUString s_zh_yue_HK( "zh-yue-HK" ); LanguageTag zh_yue_HK( s_zh_yue_HK ); |