This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] New locale for it_SM


Akhilesh Kumar <akhilesh.k@samsung.com> wrote:

> New locale is added for "Republic of San Marino"
> and Official languages is Italian
>
> https://en.wikipedia.org/wiki/San_Marino
>
> [#BZ 21918]
>       * localedata/SUPPORTED : Added  it_SM
>       * localedata/locales/it_SM:  Added New File it_SM

>     --- /dev/null
>     +++ b/localedata/locales/it_SM
>     @@ -0,0 +1,119 @@
>     +comment_char %
>     +escape_char /
>     +
>     +% This file is part of the GNU C Library and contains locale data.
>     +% The Free Software Foundation does not claim any copyright interest
>     +% in the locale data contained in this file.  The foregoing does not
>     +% affect the license of the GNU C Library as a whole.  It does not
>     +% exempt you from the conditions of the license if your use would
>     +% otherwise be governed by that license.
>     +
>     +% Italian Language Locale for San Marino
>     +% Contributed by Akhilesh Kumar <akhilesh.k@samsung.com>
>     +% Language: it
>     +% Territory: Republic of San Marino
>     +% Revision: 0.1
>     +% Date: 08/08/2017 
>     +% Users: general
>     +
>     +LC_IDENTIFICATION
>     +title      "Italian locale for Republic of San Marino"
>     +source     "Samsung Electronics Co., Ltd."
>     +address    ""
>     +contact    ""
>     +email      "akhilesh.k@samsung.com"
>     +tel        ""
>     +fax        ""
>     +language   "Italian"
>     +territory  "San Marino"
>     +revision   "0.1"
>     +date       "2017-08-08"
>     +
>     +category "i18n:2012";LC_IDENTIFICATION
>     +category "i18n:2012";LC_CTYPE
>     +category "i18n:2012";LC_COLLATE
>     +category "i18n:2012";LC_TIME
>     +category "i18n:2012";LC_NUMERIC
>     +category "i18n:2012";LC_MONETARY
>     +category "i18n:2012";LC_MESSAGES
>     +category "i18n:2012";LC_PAPER
>     +category "i18n:2012";LC_NAME
>     +category "i18n:2012";LC_ADDRESS
>     +category "i18n:2012";LC_TELEPHONE
>     +category "i18n:2012";LC_MEASUREMENT
>     +END LC_IDENTIFICATION
>     +
>     +LC_COLLATE
>     +copy "it_IT"
>     +END LC_COLLATE
>     +
>     +LC_CTYPE
>     +copy "it_IT"
>     +END LC_CTYPE
>     +
>     +LC_MESSAGES
>     +copy "it_IT"
>     +END LC_MESSAGES
>     +
>     +LC_MONETARY
>     +int_curr_symbol           "ERO "

I think that should be "EUR ".

>     +currency_symbol           "€"
>     +mon_decimal_point         "."
>     +mon_thousands_sep         ","
>     +mon_grouping              3;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

Why are mon_decimal_point and mon_thousands_sep different from what the
it_IT locale has?:

LC_MONETARY
int_curr_symbol           "EUR "
currency_symbol           "€"
mon_decimal_point         ","
mon_thousands_sep         "."
mon_grouping              3;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

Do you have any reference whether San Marino uses a different monetary
formatting than Italy?

>     +
>     +LC_NUMERIC
>     +copy "it_IT"
>     +END LC_NUMERIC
>     +
>     +LC_TIME
>     +copy "it_IT"
>     +END LC_TIME
>     +
>     +LC_PAPER
>     +copy "it_IT"
>     +END LC_PAPER
>     +
>     +LC_TELEPHONE
>     +% https://www.howtocallabroad.com/san-marino/
>     +tel_int_fmt "+%c %l"
>     +% 00 Europe: all countries except Belarus and Russia
>     +int_prefix     "00"
>     +int_select     "378"
>     +END LC_TELEPHONE
>     +
>     +LC_MEASUREMENT
>     +copy "it_IT"
>     +END LC_MEASUREMENT
>     +
>     +LC_NAME
>     +copy "it_IT"
>     +END LC_NAME
>     +
>     +LC_ADDRESS
>     +postal_fmt   "%f%N%h%s%N%T"
>     +country_name "Republic of San Marino"
>     +country_ab2 "SM"
>     +country_ab3 "SMR"
>     +country_num 674
>     +% https://en.wikipedia.org/wiki/List_of_international_vehicle_registration_codes
>     +country_car    "RSM"
>     +lang_name    "Italian"
>     +% it
>     +lang_ab      "it"
>     +% ita
>     +lang_term    "ita"
>     +% ita
>     +lang_lib    "ita"
>     +END LC_ADDRESS

-- 
Mike FABIAN <mfabian@redhat.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]