mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
Inside of locimp_forLanguageTag() in _appendKeywords() in uloc_tag.cpp
there's a hardcoded special case for "-u-va-posix" which appends the
"_POSIX" variant but this was missed during the refactoring made for
ICU-22520 (there isn't any test case that covers this).
So the call to locimp_forLanguageTag() did more than previously
understood, but we still don't want to have to call that for every
language tag that has BCP-47 extensions just in order to get to this
special case. Instead, add a special case also to ulocimp_getSubtags().
For this to work nicely, the loop in _getVariant() that copies variants
needs to be refactored so that it easily can break when encountering the
start of any BCP-47 extension (which also has the welcome side-effect of
making it more efficient, being able to append an entire variant at once
to the output sink).
This was broken by commit
|
||
---|---|---|
.. | ||
as_is | ||
build_qnx | ||
packaging | ||
source | ||
APIChangeReport.html | ||
APIChangeReport.md | ||
icu4c.css | ||
LICENSE | ||
license.html | ||
readme.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> <head> <title>ReadMe for ICU4C</title> <meta name="COPYRIGHT" content= "Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html"/> <!-- meta name="COPYRIGHT" content= "Copyright (c) 1997-2016 IBM Corporation and others. All Rights Reserved." / --> <meta name="KEYWORDS" content= "ICU; International Components for Unicode; ICU4C; what's new; readme; read me; introduction; downloads; downloading; building; installation;" /> <meta name="DESCRIPTION" content= "The introduction to the International Components for Unicode with instructions on building, installation, usage and other information about ICU." /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link type="text/css" href="./icu4c.css" rel="stylesheet"/> </head> <body> <p>This readme has moved to the <a href="https://unicode-org.github.io/icu/userguide/icu4c/">ICU4C Readme</a> section in the <a href="https://unicode-org.github.io/icu/">ICU User Guide</a>.</p> <hr /> <p> Copyright © 2016 and later: Unicode, Inc. and others. License & terms of use: <a href="http://www.unicode.org/copyright.html">http://www.unicode.org/copyright.html</a><br/> Copyright © 1997-2016 International Business Machines Corporation and others. All Rights Reserved.</p> </body> </html>