1 /*
2 * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
194 "swedish", "sv",
195 "turkish", "tr",
196 #else
197 "chinese", "zh",
198 "japanese", "ja",
199 "korean", "ko",
200 #endif
201 "", "",
202 };
203
204 /*
205 * Linux/Solaris script string to Java script name mapping table.
206 */
207 static char *script_names[] = {
208 #ifdef __linux__
209 "cyrillic", "Cyrl",
210 "devanagari", "Deva",
211 "iqtelif", "Latn",
212 "latin", "Latn",
213 #endif
214 "", "",
215 };
216
217 /*
218 * Linux/Solaris country string to ISO3166 string mapping table.
219 */
220 static char *country_names[] = {
221 #ifdef __linux__
222 "RN", "US", // used on Linux, not clear what it stands for
223 #endif
224 "YU", "CS", // YU has been removed from ISO 3166
225 "", "",
226 };
227
228 /*
229 * Linux/Solaris variant string to Java variant name mapping table.
230 */
231 static char *variant_names[] = {
232 "nynorsk", "NY",
233 "", "",
|
1 /*
2 * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
194 "swedish", "sv",
195 "turkish", "tr",
196 #else
197 "chinese", "zh",
198 "japanese", "ja",
199 "korean", "ko",
200 #endif
201 "", "",
202 };
203
204 /*
205 * Linux/Solaris script string to Java script name mapping table.
206 */
207 static char *script_names[] = {
208 #ifdef __linux__
209 "cyrillic", "Cyrl",
210 "devanagari", "Deva",
211 "iqtelif", "Latn",
212 "latin", "Latn",
213 #endif
214 "Arab", "Arab",
215 "Cyrl", "Cyrl",
216 "Deva", "Deva",
217 "Ethi", "Ethi",
218 "Hans", "Hans",
219 "Hant", "Hant",
220 "Latn", "Latn",
221 "Sund", "Sund",
222 "Syrc", "Syrc",
223 "Tfng", "Tfng",
224 "", "",
225 };
226
227 /*
228 * Linux/Solaris country string to ISO3166 string mapping table.
229 */
230 static char *country_names[] = {
231 #ifdef __linux__
232 "RN", "US", // used on Linux, not clear what it stands for
233 #endif
234 "YU", "CS", // YU has been removed from ISO 3166
235 "", "",
236 };
237
238 /*
239 * Linux/Solaris variant string to Java variant name mapping table.
240 */
241 static char *variant_names[] = {
242 "nynorsk", "NY",
243 "", "",
|