about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--locale/programs/ld-collate.c3
-rw-r--r--localedata/ChangeLog3
-rw-r--r--localedata/SUPPORTED1
-rw-r--r--localedata/locales/sa_IN254
4 files changed, 260 insertions, 1 deletions
diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c
index feab034740..0cd378f21b 100644
--- a/locale/programs/ld-collate.c
+++ b/locale/programs/ld-collate.c
@@ -1842,7 +1842,8 @@ symbol `%s' has the same encoding as"), (*eptr)->name);
 
       while (osect != sect)
 	if (osect->rules != NULL
-	    && memcmp (osect->rules, sect->rules, nrules) == 0)
+	    && memcmp (osect->rules, sect->rules,
+		       nrules * sizeof (osect->rules[0])) == 0)
 	  break;
 	else
 	  osect = osect->next;
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index cd94f7bf57..063afa2787 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,5 +1,8 @@
 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
 
+	* locales/sa_IN: New file.
+	* SUPPORTED (SUPPORTED-LOCALES): Add sa_IN.
+
 	* locales/fr_FR: Change thousands_sep to U0020.
 
 	* locales/cs_CZ: Sort lowercase before uppercase.
diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
index f2e358df64..c239b9f5a7 100644
--- a/localedata/SUPPORTED
+++ b/localedata/SUPPORTED
@@ -319,6 +319,7 @@ ru_RU/ISO-8859-5 \
 ru_UA.UTF-8/UTF-8 \
 ru_UA/KOI8-U \
 rw_RW/UTF-8 \
+sa_IN/UTF-8 \
 sc_IT/UTF-8 \
 se_NO/UTF-8 \
 si_LK/UTF-8 \
diff --git a/localedata/locales/sa_IN b/localedata/locales/sa_IN
new file mode 100644
index 0000000000..1e0d80c9d8
--- /dev/null
+++ b/localedata/locales/sa_IN
@@ -0,0 +1,254 @@
+comment_char    %
+escape_char     /
+% Sanskrit language locale for India.
+% Contributed by Vidya Ayer <svaksha@gmail.com>
+% and Christian Perrier <bubulle@debian.org>
+
+LC_IDENTIFICATION
+title      "Sanskrit language locale for India"
+source     "The Debian project"
+address    ""
+contact    "Christian Perrier"
+email      "bubulle@debian.org"
+tel        ""
+fax        ""
+language   "Sanskrit"
+territory  "India"
+revision   "1.0"
+date       "2005-09-25"
+%
+category  "sa_IN:2000";LC_IDENTIFICATION
+category  "sa_IN:2000";LC_CTYPE
+category  "sa_IN:2000";LC_COLLATE
+category  "sa_IN:2000";LC_TIME
+category  "sa_IN:2000";LC_NUMERIC
+category  "sa_IN:2000";LC_MONETARY
+category  "sa_IN:2000";LC_MESSAGES
+category  "sa_IN:2000";LC_PAPER
+category  "sa_IN:2000";LC_NAME
+category  "sa_IN:2000";LC_ADDRESS
+category  "sa_IN:2000";LC_TELEPHONE
+
+END LC_IDENTIFICATION
+
+LC_CTYPE
+copy "i18n"
+
+translit_start
+include "translit_combining";""
+translit_end
+END LC_CTYPE
+
+LC_COLLATE
+
+% Copy the template from ISO/IEC 14651
+copy "iso14651_t1"
+
+END LC_COLLATE
+
+LC_MONETARY
+% This is the POSIX Locale definition the LC_MONETARY category.
+% These are generated based on XML base Locale difintion file
+% for IBM Class for Unicode/Java
+%
+int_curr_symbol       "<U0049><U004E><U0052><U0020>"
+currency_symbol       "<U0930><U0942>"
+mon_decimal_point     "<U002E>"
+mon_thousands_sep     "<U002C>"
+mon_grouping          3
+positive_sign         ""
+negative_sign         "<U002D>"
+int_frac_digits       2
+frac_digits           2
+p_cs_precedes         1
+p_sep_by_space        1
+n_cs_precedes         1
+n_sep_by_space        1
+p_sign_posn           1
+n_sign_posn           1
+%
+END LC_MONETARY
+
+
+LC_NUMERIC
+% This is the POSIX Locale definition for the LC_NUMERIC  category.
+%
+decimal_point          "<U002E>"
+thousands_sep          "<U002C>"
+grouping               3
+%
+END LC_NUMERIC
+
+
+LC_TIME
+% This is the POSIX Locale definition for the LC_TIME category.
+% These are generated based on XML base Locale difintion file
+% for IBM Class for Unicode/Java
+%
+% Abbreviated weekday names (%a)
+% ravih,somah,mangalah,budhah,brhaspatih,shukra,shanih
+abday       "<U0930><U0935><U093F><U0903>";/
+            "<U0938><U094B><U092E><U003A>";/
+            "<U092E><U0902><U0917><U0932><U003A>";/
+            "<U092C><U0941><U0927><U003A>";/
+            "<U092C><U0943><U0939><U0938><U094D><U092A><U0924><U093F><U0903>";/
+            "<U0936><U0941><U0915><U094D><U0930>";/
+            "<U0936><U0928><U093F><U003A>"
+%
+% Full weekday names (%A)
+% ravivasarah, somavasarah, mangalavasarah, budhavasarah, brhaspativasarah, shukravasarah, shanivasarah
+day         "<U0930><U0935><U093F><U0935><U093E><U0938><U0930><U003A>";/
+            "<U0938><U094B><U092E><U0935><U093E><U0938><U0930><U003A>";/
+            "<U092E><U0902><U0917><U0932><U0935><U093E><U0938><U0930><U003A>";/
+            "<U092C><U0941><U0927><U0935><U093E><U0938><U0930><U003A>";/
+            "<U092C><U0943><U0939><U0938><U094D><U092A><U0924><U093F><U0935><U093E><U0938><U0930><U0903>";/
+            "<U0936><U0941><U0915><U094D><U0930><U0935><U093E><U0938><U0930>";/
+            "<U0936><U0928><U093F><U0935><U093E><U0938><U0930><U003A>"
+%
+% Abbreviated month names (%b)
+% Below comes from hi_IN.
+% Sanskrit uses a lunar calendar. When gregorian month names
+% are needed, the names are the same names than those used
+% by Hindi
+% names for gregorian month names:
+abmon       "<U091C><U0928><U0935><U0930><U0940>";/
+            "<U092B><U093C><U0930><U0935><U0930><U0940>";/
+            "<U092E><U093E><U0930><U094D><U091A>";/
+            "<U0905><U092A><U094D><U0930><U0947><U0932>";/
+            "<U092E><U0908>";/
+            "<U091C><U0942><U0928>";/
+            "<U091C><U0941><U0932><U093E><U0908>";/
+            "<U0905><U0917><U0938><U094D><U0924>";/
+            "<U0938><U093F><U0924><U092E><U094D><U092C><U0930>";/
+            "<U0905><U0915><U094D><U091F><U0942><U092C><U0930>";/
+            "<U0928><U0935><U092E><U094D><U092C><U0930>";/
+            "<U0926><U093F><U0938><U092E><U094D><U092C><U0930>"
+%
+% Full month names (%B)
+% Sanskrit uses a lunar calendar. When gregorian month names
+% are needed, the names are the same names than those used
+% by Hindi
+% Lunar calendar month names:
+% Chaitra            March 22
+% Vaisakha           April 29
+% jyeshthah          May 22
+% ashadah            June 22
+% shravanah          July 23
+% bhadrapadah        August 23
+% ashvinah           September 23
+% kartikah           October 23
+% margashirsah       November 22
+% paushah            December 22
+% maghah             January 29
+% phalgunah          February 20
+% names for gregorian month names:
+mon         "<U091C><U0928><U0935><U0930><U0940>";/
+            "<U092B><U093C><U0930><U0935><U0930><U0940>";/
+            "<U092E><U093E><U0930><U094D><U091A>";/
+            "<U0905><U092A><U094D><U0930><U0947><U0932>";/
+            "<U092E><U0908>";/
+            "<U091C><U0942><U0928>";/
+            "<U091C><U0941><U0932><U093E><U0908>";/
+            "<U0905><U0917><U0938><U094D><U0924>";/
+            "<U0938><U093F><U0924><U092E><U094D><U092C><U0930>";/
+            "<U0905><U0915><U094D><U091F><U0942><U092C><U0930>";/
+            "<U0928><U0935><U092E><U094D><U092C><U0930>";/
+            "<U0926><U093F><U0938><U092E><U094D><U092C><U0930>"
+%
+% Equivalent of AM PM
+am_pm       "<U092A><U0942><U0930><U094D><U0935><U093E><U0939><U094D><U0928>";/
+            "<U0905><U092A><U0930><U093E><U0939><U094D><U0928>"
+%
+% Appropriate date and time representation
+% %A %d %b %Y%I:%M:%S  %Z
+d_t_fmt     "<U0025><U0041><U0020><U0025><U0064><U0020><U0025><U0062>/
+<U0020><U0025><U0059><U0020><U0025><U0049><U003A><U0025><U004D><U003A>/
+<U0025><U0053><U0020><U0025><U0070><U0020><U0025><U005A>"
+%
+% Appropriate date representation
+% %A %d %b %Y
+d_fmt       "<U0025><U0041><U0020><U0025><U0064><U0020><U0025><U0062>/
+<U0020><U0025><U0059>"
+%
+% Appropriate time representation
+% %I:%M:%S  %Z
+t_fmt       "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053>/
+<U0020><U0020><U0025><U005A>"
+%
+% Appropriate 12 h time representation (%r)
+t_fmt_ampm  "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053>/
+<U0020><U0025><U0070><U0020><U0025><U005A>"
+%
+date_fmt       "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
+<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
+<U0025><U005A><U0020><U0025><U0059>"
+END LC_TIME
+
+
+LC_MESSAGES
+% "^[aAyY].*"
+%  "^[nN].*"
+yesexpr "<U005E><U005B><U0061><U0041><U0079><U0059><U005D><U002E><U002A>"
+noexpr  "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>"
+END LC_MESSAGES
+
+
+LC_PAPER
+% This is the ISO_IEC TR14652 Locale definition for the LC_PAPER category
+% generated by IBM Basic CountryPack Transformer.
+height      297
+width       210
+
+END LC_PAPER
+
+
+LC_NAME
+% This is the ISO_IEC TR14652 Locale definition for the
+% LC_NAME category.
+%
+name_fmt    "<U0025><U0070><U0025><U0074><U0025><U0066><U0025><U0074>/
+<U0025><U0067>"
+name_gen    ""
+%
+% shri
+name_mr     "<U0936><U094D><U0930><U0940>"
+% For boys under 18, this is "kumar"
+% but locales are sexist and do not even imagine
+% that some language may have different forms for MEN too
+% name_mr     "<U0915><U0941><U092E><U093E><U0930>"
+% shrimati
+name_mrs    "<U0936><U094D><U0930><U0940><U092E><U0924><U0940>"
+% kumari
+name_miss   "<U0915><U0941><U092E><U093E><U0930><U0940>"
+% shrimati
+name_ms     "<U0936><U094D><U0930><U0940><U092E><U0924><U0940>"
+
+END LC_NAME
+
+
+LC_ADDRESS
+% This is the ISO_IEC TR14652 Locale definition for the
+% LC_ADDRESS
+postal_fmt  "<U0025><U007A><U0025><U0063><U0025><U0054><U0025><U0073>/
+<U0025><U0062><U0025><U0065><U0025><U0072>"
+
+country_ab2 "<U0049><U004E>"
+country_ab3 "<U0049><U004E><U0044>"
+country_num 356
+END LC_ADDRESS
+
+
+LC_TELEPHONE
+% This is the ISO_IEC TR14652 Locale definition for the LC_TELEPHONE
+% generated by IBM Basic CountryPack Transformer.
+tel_int_fmt "<U002B><U0025><U0063><U0020><U003B><U0025><U0061><U0020><U003B><U0025><U006C>"
+int_prefix "<U0039><U0031>"
+int_select "<U0030><U0030>"
+END LC_TELEPHONE
+
+
+LC_MEASUREMENT
+% This is the ISO_IEC TR14652 Locale definition for the LC_MEASUREMENT
+% category generated by IBM Basic CountryPack Transformer.
+measurement 1
+END LC_MEASUREMENT