--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/locale/ar_EG.ISO8859-6.spec Fri Oct 23 16:26:51 2009 +0200
@@ -0,0 +1,2 @@
+pkg_name SUNWlang-ar-extra
+prototype legacy locale_aliases geo_map mp_files
--- a/locale/he_IL.ISO8859-8.spec Thu Oct 22 10:09:58 2009 +0200
+++ b/locale/he_IL.ISO8859-8.spec Fri Oct 23 16:26:51 2009 +0200
@@ -1,2 +1,2 @@
pkg_name SUNWlang-he-extra
-prototype legacy_alt locale_aliases he_extra
+prototype legacy_alt locale_aliases mp_files
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ISO8859-6.x Fri Oct 23 16:26:51 2009 +0200
@@ -0,0 +1,87 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+#ident "@(#)single_byte.x 1.4 05/06/23 SMI"
+
+#
+# This is the generic version of the method file for producing a single
+# byte locale which as a EUC based file code charmap and will run in native
+# process code. Don't assume anything about the process code.
+# The applications you intend to run must be Code Set Independent (CSI)
+# to run properly.
+#
+
+METHODS
+process_code dense
+cswidth 1:1,0:0,0:0
+
+fgetwc "__fgetwc_sb" "libc" "/usr/lib" "libc.so.1"
+fnmatch "__fnmatch_sb"
+getdate "__getdate_std"
+iswctype "__iswctype_sb"
+mbftowc "__mbftowc_sb"
+mblen "__mblen_sb"
+mbstowcs "__mbstowcs_sb"
+mbtowc "__mbtowc_sb"
+regcomp "__regcomp_std"
+regexec "__regexec_std"
+regerror "__regerror_std"
+regfree "__regfree_std"
+strcoll "__strcoll_sb"
+strfmon "__strfmon_std"
+strftime "__strftime_std"
+strptime "__strptime_std"
+strxfrm "__strxfrm_sb"
+towctrans "__towctrans_std"
+towlower "__towlower_std"
+towupper "__towupper_std"
+trwctype "__trwctype_std"
+wcscoll "__wcscoll_bc"
+wcscoll@native "__wcscoll_std"
+wcsftime "__wcsftime_std"
+wcstombs "__wcstombs_sb"
+wcswidth "__wcswidth_sb"
+wcsxfrm "__wcsxfrm_bc"
+wcsxfrm@native "__wcsxfrm_std"
+wctomb "__wctomb_sb"
+wctrans "__wctrans_std"
+wctype "__wctype_std"
+wcwidth "__wcwidth_sb"
+btowc "__btowc_euc"
+btowc@native "__btowc_sb"
+wctob "__wctob_euc"
+wctob@native "__wctob_sb"
+mbsinit "__mbsinit_gen"
+mbrlen "__mbrlen_sb"
+mbrtowc "__mbrtowc_euc"
+mbrtowc@native "__mbrtowc_sb"
+wcrtomb "__wcrtomb_euc"
+wcrtomb@native "__wcrtomb_sb"
+mbsrtowcs "__mbsrtowcs_euc"
+mbsrtowcs@native "__mbsrtowcs_sb"
+wcsrtombs "__wcsrtombs_euc"
+wcsrtombs@native "__wcsrtombs_sb"
+
+END METHODS
--- a/misc/locale.alias Thu Oct 22 10:09:58 2009 +0200
+++ b/misc/locale.alias Fri Oct 23 16:26:51 2009 +0200
@@ -23,6 +23,7 @@
#
+#ar_EG.ISO8859-6 ar
#ca_ES.ISO8859-1 ca
#cs_CZ.ISO8859-2 cs
#da_DK.ISO8859-1 da
@@ -43,6 +44,7 @@
#ru_RU.ISO8859-5 ru
#sv_SE.ISO8859-1 sv
#tr_TR.ISO8859-9 tr
+ar_EG.ISO8859-6 ar_EG
bg_BG.ISO8859-5 bg_BG
ca_ES.ISO8859-1 ca_ES
cs_CZ.ISO8859-2 cs_CZ
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/patches/cldr_tools/1.7.1/16_arabic_hack.patch Fri Oct 23 16:26:51 2009 +0200
@@ -0,0 +1,63 @@
+diff -ruN cldr_tools.orig/tools/tools/java/org/unicode/cldr/posix/POSIXUtilities.java cldr_tools/tools/java/org/unicode/cldr/posix/POSIXUtilities.java
+--- cldr_tools.orig/tools/java/org/unicode/cldr/posix/POSIXUtilities.java 2009-10-21 12:51:00.000000000 +0200
++++ cldr_tools/tools/java/org/unicode/cldr/posix/POSIXUtilities.java 2009-10-21 13:26:53.000000000 +0200
+@@ -25,6 +25,7 @@
+
+ private static UnicodeSet repertoire = new UnicodeSet(0x0000,0x10FFFF);
+ private static Document char_fallbk;
++ public static boolean isInReperoire = true;
+
+ public static void setRepertoire ( UnicodeSet rep )
+ {
+@@ -51,6 +52,7 @@
+ public static String POSIXCharName ( String s )
+ {
+ int cp;
++ isInReperoire = true;
+ StringBuffer result = new StringBuffer();
+ for (int i = 0; i < s.length(); i += UTF16.getCharCount(cp)) {
+ cp = UTF16.charAt(s, i);
+@@ -111,7 +113,10 @@
+ result = new StringBuffer(POSIXUtilities.POSIXCharName(substituteString));
+ }
+ else
++ {
+ System.out.println(" No acceptable substitute found. The resulting locale source may not compile.");
++ isInReperoire = false;
++ }
+ }
+
+ return result.toString();
+diff -ruN cldr_tools.orig/tools/java/org/unicode/cldr/posix/POSIX_LCMonetary.java cldr_tools/tools/java/org/unicode/cldr/posix/POSIX_LCMonetary.java
+--- cldr_tools.orig/tools/java/org/unicode/cldr/posix/POSIX_LCMonetary.java 2009-10-21 12:51:00.000000000 +0200
++++ cldr_tools/tools/java/org/unicode/cldr/posix/POSIX_LCMonetary.java 2009-10-21 13:27:11.000000000 +0200
+@@ -97,6 +97,10 @@
+ else
+ currency_symbol = POSIXUtilities.POSIXCharName(tmp_currency_symbol);
+
++ if (tmp_currency_symbol.endsWith("\u200F") && POSIXUtilities.isInReperoire == false)
++ currency_symbol = POSIXUtilities.POSIXCharName(
++ new StringBuffer(tmp_currency_symbol).deleteCharAt(tmp_currency_symbol.length()-1).reverse().toString());
++
+ n = LDMLUtilities.getNode(doc, "//ldml/numbers/currencies/currency[@type='"+int_curr_symbol+"']/decimal");
+ if ( n == null )
+ n = LDMLUtilities.getNode(doc, "//ldml/numbers/symbols/currencySeparator");
+diff -ruN cldr_tools.orig/tools/java/org/unicode/cldr/posix/POSIX_LCTime.java cldr_tools/tools/java/org/unicode/cldr/posix/POSIX_LCTime.java
+--- cldr_tools.orig/tools/java/org/unicode/cldr/posix/POSIX_LCTime.java 2009-10-21 17:41:39.000000000 +0200
++++ cldr_tools/tools/java/org/unicode/cldr/posix/POSIX_LCTime.java 2009-10-21 17:42:27.000000000 +0200
+@@ -80,11 +80,12 @@
+ alt_digits[0] = "";
+ SearchLocation = "//ldml/numbers/symbols/nativeZeroDigit";
+ n = LDMLUtilities.getNode(doc, SearchLocation);
+- if ( (n != null) && !(LDMLUtilities.getNodeValue(n).equals("0")))
++ String NativeZeroDigit = LDMLUtilities.getNodeValue(n);
++ String NativeZeroDigitChar = POSIXUtilities.POSIXCharName(NativeZeroDigit);
++ if ( (n != null) && !NativeZeroDigit.equals("0") && POSIXUtilities.isInReperoire)
+ {
+ //Character ThisDigit;
+- String NativeZeroDigit = LDMLUtilities.getNodeValue(n);
+- alt_digits[0] = POSIXUtilities.POSIXCharName(NativeZeroDigit);
++ alt_digits[0] = NativeZeroDigitChar;
+ char base_value = NativeZeroDigit.charAt(0);
+ for ( short i = 1 ; i < 10 ; i++ )
+ alt_digits[i] = POSIXUtilities.POSIXCharName(Character.toString(((char)((short)base_value + i))));
--- a/misc/templates/prototype/he_extra Thu Oct 22 10:09:58 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-# prototype.he_extra (LOC: $LOC, MACH64: $MACH64): special files for 'he' locale
-
-d none usr/lib/lp 0755 root lp
-d none usr/lib/lp/locale 0755 root lp
-d none usr/lib/lp/locale/he 0755 root lp
-d none usr/lib/lp/locale/he/mp 0755 root lp
-f none usr/lib/lp/locale/he/mp/mp.conf 0444 root lp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/templates/prototype/mp_files Fri Oct 23 16:26:51 2009 +0200
@@ -0,0 +1,31 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+# prototype.mp_files (LOC: $LOC, MACH64: $MACH64): mp conf files
+
+d none usr/lib/lp 0755 root lp
+d none usr/lib/lp/locale 0755 root lp
+d none usr/lib/lp/locale/${LOC:0:2} 0755 root lp
+d none usr/lib/lp/locale/${LOC:0:2}/mp 0755 root lp
+f none usr/lib/lp/locale/${LOC:0:2}/mp/mp.conf 0444 root lp