[v4] Removed redundant data for LC_MONETARY

Message ID 1502358015-1690-1-git-send-email-akhilesh.k@samsung.com
State New
Headers show

Commit Message

AKHILESH KUMAR Aug. 10, 2017, 9:40 a.m.
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

Mike FABIAN Aug. 10, 2017, 1:34 p.m. | #1
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.

Patch

diff --git a/localedata/locales/ar_IN b/localedata/locales/ar_IN
index 791e63c..0f313c9 100644
--- a/localedata/locales/ar_IN
+++ b/localedata/locales/ar_IN
@@ -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
 
 
diff --git a/localedata/locales/as_IN b/localedata/locales/as_IN
index b7c905a..c2ee88c 100644
--- a/localedata/locales/as_IN
+++ b/localedata/locales/as_IN
@@ -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
 
 %%%%%%%%%%%%%
diff --git a/localedata/locales/bhb_IN b/localedata/locales/bhb_IN
index 49b1cbe..4ecac8c 100644
--- a/localedata/locales/bhb_IN
+++ b/localedata/locales/bhb_IN
@@ -47,7 +47,7 @@  copy "iso14651_t1"
 END LC_COLLATE
 
 LC_MONETARY
-copy "ks_IN"
+copy "hi_IN"
 END LC_MONETARY
 
 
diff --git a/localedata/locales/bn_IN b/localedata/locales/bn_IN
index f81e1de..f14e1b9 100644
--- a/localedata/locales/bn_IN
+++ b/localedata/locales/bn_IN
@@ -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
 
 
diff --git a/localedata/locales/en_IN b/localedata/locales/en_IN
index 933a41c..7a4a27e 100644
--- a/localedata/locales/en_IN
+++ b/localedata/locales/en_IN
@@ -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
 
 
diff --git a/localedata/locales/gu_IN b/localedata/locales/gu_IN
index 30577e1..b883b35 100644
--- a/localedata/locales/gu_IN
+++ b/localedata/locales/gu_IN
@@ -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
 
 
diff --git a/localedata/locales/hi_IN b/localedata/locales/hi_IN
index 05b8918..eb72286 100644
--- a/localedata/locales/hi_IN
+++ b/localedata/locales/hi_IN
@@ -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
 %
diff --git a/localedata/locales/kn_IN b/localedata/locales/kn_IN
index 3f89da0..fc067b8 100644
--- a/localedata/locales/kn_IN
+++ b/localedata/locales/kn_IN
@@ -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
 
 
diff --git a/localedata/locales/kok_IN b/localedata/locales/kok_IN
index 3353a60..a366570 100644
--- a/localedata/locales/kok_IN
+++ b/localedata/locales/kok_IN
@@ -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
 
 
diff --git a/localedata/locales/ks_IN b/localedata/locales/ks_IN
index 094f2cd..de66d45 100644
--- a/localedata/locales/ks_IN
+++ b/localedata/locales/ks_IN
@@ -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
 
 
diff --git a/localedata/locales/ml_IN b/localedata/locales/ml_IN
index 0117a2d..b175d32 100644
--- a/localedata/locales/ml_IN
+++ b/localedata/locales/ml_IN
@@ -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
diff --git a/localedata/locales/mr_IN b/localedata/locales/mr_IN
index 3137857..04b1b4d 100644
--- a/localedata/locales/mr_IN
+++ b/localedata/locales/mr_IN
@@ -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
 
 
diff --git a/localedata/locales/or_IN b/localedata/locales/or_IN
index 6a7fe3c..2d9a3b3 100644
--- a/localedata/locales/or_IN
+++ b/localedata/locales/or_IN
@@ -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
 
 %%%%%%%%%%%%%
diff --git a/localedata/locales/pa_IN b/localedata/locales/pa_IN
index 831c66b..b371ae4 100644
--- a/localedata/locales/pa_IN
+++ b/localedata/locales/pa_IN
@@ -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
 
 
diff --git a/localedata/locales/sa_IN b/localedata/locales/sa_IN
index c0ccdec..7ca0317 100644
--- a/localedata/locales/sa_IN
+++ b/localedata/locales/sa_IN
@@ -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
 
 
diff --git a/localedata/locales/sd_IN b/localedata/locales/sd_IN
index bc9d681..f0c653e 100644
--- a/localedata/locales/sd_IN
+++ b/localedata/locales/sd_IN
@@ -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
 
 
diff --git a/localedata/locales/ta_IN b/localedata/locales/ta_IN
index 3cda08a..5963a26 100644
--- a/localedata/locales/ta_IN
+++ b/localedata/locales/ta_IN
@@ -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
 
 
diff --git a/localedata/locales/tcy_IN b/localedata/locales/tcy_IN
index 9f021c5..01d66ff 100644
--- a/localedata/locales/tcy_IN
+++ b/localedata/locales/tcy_IN
@@ -52,7 +52,7 @@  copy "iso14651_t1"
 END LC_COLLATE
 
 LC_MONETARY
-copy "kn_IN"
+copy "hi_IN"
 END LC_MONETARY
 
 
diff --git a/localedata/locales/te_IN b/localedata/locales/te_IN
index 50335b0..c9cccaf 100644
--- a/localedata/locales/te_IN
+++ b/localedata/locales/te_IN
@@ -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
 
 
diff --git a/localedata/locales/ur_IN b/localedata/locales/ur_IN
index 1af10ed..f8f5de8 100644
--- a/localedata/locales/ur_IN
+++ b/localedata/locales/ur_IN
@@ -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