From 2803e5c1e7112882003c3e2301f8e28f3dc2b6b7 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 5 Apr 2014 22:11:55 +0200 Subject: document why the test fails and is disabled Change-Id: I17bb169f14d225b970014ab26a7f1d9d0d1b0af8 --- i18nlangtag/qa/cppunit/test_languagetag.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'i18nlangtag/qa') 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 ); -- cgit