summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-02-18 17:49:44 -0800
committerEric Fischer <enf@google.com>2011-02-28 14:42:17 -0800
commit20998b1075a200ea844bcbd5a1851c8c5d0afb32 (patch)
treed283cde03e8a1e39f6a1e6146414575497015baa /annotations/generate_annotated_java_files.py
parent0351940f37cf93ea856c52d7e88302271ff39d2e (diff)
Cope with ICU reporting obsolete language codes.
java.util.Locale mangles the new language codes for Hebrew and Indonesian into the obsolete codes. I've added the ICU aliases so that ICU knows about the obsolete codes (so that when we pass a mangled locale to ICU, ICU knows what we're talking about). This patch adds tests, and also filters out the duplicates caused by ICU now reporting both "he" and "iw", which we mangle into "iw" and "iw". I've used a LinkedHashMap to preserve ICU's ordering; there's no _need_ to do this, but it's nice behavior, better than the RI's. Bug: 3452611 Change-Id: I6c6f3058902d5b7ee2f100605c019669da6893cd
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions