From db007b0d54b03604c26779f87b31809df3c6d2d9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 30 Sep 2007 22:19:34 +0000 Subject: * locales/sa_IN: New file. * SUPPORTED (SUPPORTED-LOCALES): Add sa_IN. --- locale/programs/ld-collate.c | 3 +- localedata/ChangeLog | 3 + localedata/SUPPORTED | 1 + localedata/locales/sa_IN | 254 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 260 insertions(+), 1 deletion(-) create mode 100644 localedata/locales/sa_IN 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 + * 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 +% and Christian Perrier + +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 "" +currency_symbol "" +mon_decimal_point "" +mon_thousands_sep "" +mon_grouping 3 +positive_sign "" +negative_sign "" +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 "" +thousands_sep "" +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 "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "" +% +% Full weekday names (%A) +% ravivasarah, somavasarah, mangalavasarah, budhavasarah, brhaspativasarah, shukravasarah, shanivasarah +day "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "" +% +% 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 "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "" +% +% 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 "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "";/ + "" +% +% Equivalent of AM PM +am_pm "";/ + "" +% +% Appropriate date and time representation +% %A %d %b %Y%I:%M:%S %Z +d_t_fmt "/ +/ +" +% +% Appropriate date representation +% %A %d %b %Y +d_fmt "/ +" +% +% Appropriate time representation +% %I:%M:%S %Z +t_fmt "/ +" +% +% Appropriate 12 h time representation (%r) +t_fmt_ampm "/ +" +% +date_fmt "/ +/ +" +END LC_TIME + + +LC_MESSAGES +% "^[aAyY].*" +% "^[nN].*" +yesexpr "" +noexpr "" +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 "/ +" +name_gen "" +% +% shri +name_mr "" +% 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 "" +% shrimati +name_mrs "" +% kumari +name_miss "" +% shrimati +name_ms "" + +END LC_NAME + + +LC_ADDRESS +% This is the ISO_IEC TR14652 Locale definition for the +% LC_ADDRESS +postal_fmt "/ +" + +country_ab2 "" +country_ab3 "" +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 "" +int_prefix "" +int_select "" +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 -- cgit v1.2.3