Kaydet (Commit) 2803e5c1 authored tarafından Eike Rathke's avatar Eike Rathke

document why the test fails and is disabled

Change-Id: I17bb169f14d225b970014ab26a7f1d9d0d1b0af8
üst b26aaf5f
...@@ -444,9 +444,15 @@ void TestLanguageTag::testAllTags() ...@@ -444,9 +444,15 @@ void TestLanguageTag::testAllTags()
} }
#if USE_LIBLANGTAG #if USE_LIBLANGTAG
// 'zh-yue-HK' uses extlang and should be preferred 'yue-HK' // 'zh-yue-HK' uses redundant 'zh-yue' and should be preferred 'yue-HK'
// Disable until internal vs liblangtag is sorted out.
#if 0 #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" ); OUString s_zh_yue_HK( "zh-yue-HK" );
LanguageTag zh_yue_HK( s_zh_yue_HK ); LanguageTag zh_yue_HK( s_zh_yue_HK );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment