[v4] Removed redundant data for LC_MONETARY
Commit Message
Reference is taken from
https://en.wikipedia.org/wiki/Indian_numbering_system
https://en.wikipedia.org/wiki/Indian_rupee
[BZ# 21836]
* locales/ar_IN (LC_MONETARY) : copy "hi_IN"
* locales/as_IN (LC_MONETARY) : copy "hi_IN"
* locales/bhb_IN (LC_MONETARY): copy "hi_IN"
* locales/bn_IN (LC_MONETARY) : copy "hi_IN"
* locales/en_IN (LC_MONETARY) : copy "hi_IN"
* locales/gu_IN (LC_MONETARY) : copy "hi_IN"
* locales/hi_IN (LC_MONETARY) : Fix mon_grouping,
p_sep_by_space and n_sep_by_space
* locales/kn_IN (LC_MONETARY) : copy "hi_IN"
* locales/kok_IN(LC_MONETARY) : copy "hi_IN"
* locales/ks_IN (LC_MONETARY) : copy "hi_IN"
* locales/ml_IN (LC_MONETARY) : copy "hi_IN"
* locales/mr_IN (LC_MONETARY) : copy "hi_IN"
* locales/or_IN (LC_MONETARY) : copy "hi_IN"
* locales/pa_IN (LC_MONETARY) : copy "hi_IN"
* locales/sa_IN (LC_MONETARY) : copy "hi_IN"
* locales/sd_IN (LC_MONETARY) : copy "hi_IN"
* locales/ta_IN (LC_MONETARY) : copy "hi_IN"
* locales/tcy_IN(LC_MONETARY) : copy "hi_IN"
* locales/te_IN (LC_MONETARY) : copy "hi_IN"
* locales/ur_IN (LC_MONETARY) : copy "hi_IN"
---
localedata/locales/ar_IN | 22 +---------------------
localedata/locales/as_IN | 22 +---------------------
localedata/locales/bhb_IN | 2 +-
localedata/locales/bn_IN | 22 +---------------------
localedata/locales/en_IN | 22 +---------------------
localedata/locales/gu_IN | 21 +--------------------
localedata/locales/hi_IN | 17 ++++++++++-------
localedata/locales/kn_IN | 21 +--------------------
localedata/locales/kok_IN | 22 +---------------------
localedata/locales/ks_IN | 23 +----------------------
localedata/locales/ml_IN | 25 ++-----------------------
localedata/locales/mr_IN | 22 +---------------------
localedata/locales/or_IN | 22 +---------------------
localedata/locales/pa_IN | 18 +-----------------
localedata/locales/sa_IN | 21 +--------------------
localedata/locales/sd_IN | 22 +---------------------
localedata/locales/ta_IN | 22 +---------------------
localedata/locales/tcy_IN | 2 +-
localedata/locales/te_IN | 22 +---------------------
localedata/locales/ur_IN | 4 +---
20 files changed, 30 insertions(+), 344 deletions(-)
Comments
Akhilesh Kumar <akhilesh.k@samsung.com> wrote:
> Reference is taken from
> https://en.wikipedia.org/wiki/Indian_numbering_system
> https://en.wikipedia.org/wiki/Indian_rupee
>
> [BZ# 21836]
I committed this with minor fixes and with adapting the
test cases in stdlib/tst-strfmon_l.c.
@@ -53,27 +53,7 @@ END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -58,27 +58,7 @@ END LC_NUMERIC
%%%%%%%%%%%%%
LC_MONETARY
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-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
-int_p_cs_precedes 1
-int_p_sep_by_space 1
-int_n_cs_precedes 1
-int_n_sep_by_space 1
-int_p_sign_posn 1
-int_n_sign_posn 1
+copy "hi_IN"
END LC_MONETARY
%%%%%%%%%%%%%
@@ -47,7 +47,7 @@ copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
-copy "ks_IN"
+copy "hi_IN"
END LC_MONETARY
@@ -54,27 +54,7 @@ END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 2;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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -53,27 +53,7 @@ END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -74,26 +74,7 @@ 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 definition file
-% for IBM Class for Unicode/Java
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3
-positive_sign "<U002B>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -76,19 +76,22 @@ LC_MONETARY
% These are generated based on XML base Locale definition file
% for IBM Class for Unicode/Java
%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
+int_curr_symbol "INR "
currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3
+mon_decimal_point "."
+mon_thousands_sep ","
+% https://en.wikipedia.org/wiki/Indian_numbering_system
+% example 12,34,56,789
+mon_grouping 3;2
positive_sign ""
-negative_sign "<U002D>"
+negative_sign "-"
int_frac_digits 2
frac_digits 2
+% https://en.wikipedia.org/wiki/Indian_rupee
p_cs_precedes 1
-p_sep_by_space 1
+p_sep_by_space 0
n_cs_precedes 1
-n_sep_by_space 1
+n_sep_by_space 0
p_sign_posn 1
n_sign_posn 1
%
@@ -74,26 +74,7 @@ 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 definition file
-% for IBM Class for Unicode/Java
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -51,27 +51,7 @@ copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -56,29 +56,8 @@ copy "iso14651_t1"
END LC_COLLATE
-
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -65,33 +65,12 @@ 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
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-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
%
+LC_MONETARY
+copy "hi_IN"
END LC_MONETARY
%
LC_NUMERIC
@@ -71,27 +71,7 @@ reorder-end
END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -614,27 +614,7 @@ END LC_NUMERIC
%%%%%%%%%%%%%
LC_MONETARY
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-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
-int_p_cs_precedes 1
-int_p_sep_by_space 1
-int_n_cs_precedes 1
-int_n_sep_by_space 1
-int_p_sign_posn 1
-int_n_sign_posn 1
+copy "hi_IN"
END LC_MONETARY
%%%%%%%%%%%%%
@@ -72,23 +72,7 @@ copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category.
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -55,26 +55,7 @@ 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 definition file
-% for IBM Class for Unicode/Java
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -58,27 +58,7 @@ END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -75,27 +75,7 @@ END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-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
-%
+copy "hi_IN"
END LC_MONETARY
@@ -52,7 +52,7 @@ copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
-copy "kn_IN"
+copy "hi_IN"
END LC_MONETARY
@@ -75,27 +75,7 @@ END LC_COLLATE
LC_MONETARY
-% This is the POSIX Locale definition the LC_MONETARY category
-% generated by IBM Basic CountryPack Transformer.
-% These are generated based on XML base Locale defintion file
-% for IBM Class for Unicode.
-%
-int_curr_symbol "<U0049><U004E><U0052><U0020>"
-currency_symbol "<U20B9>"
-mon_decimal_point "<U002E>"
-mon_thousands_sep "<U002C>"
-mon_grouping 3;2
-positive_sign ""
-negative_sign "<U002D>"
-int_frac_digits 2
-frac_digits 2
-p_cs_precedes 1
-p_sep_by_space 0
-n_cs_precedes 1
-n_sep_by_space 0
-p_sign_posn 1
-n_sign_posn 1
-%
+copy "hi_IN"
END LC_MONETARY
@@ -53,12 +53,10 @@ END LC_CTYPE
LC_COLLATE
% Copy the template from ISO/IEC 14651
copy "iso14651_t1"
-
END LC_COLLATE
-
LC_MONETARY
-copy "ar_IN"
+copy "hi_IN"
END LC_MONETARY