[PATCH] [BZ 14510] Fix LC_NUMERIC for various es_* locales
Jeff Law
law@redhat.com
Wed Aug 22 18:01:00 GMT 2012
Back in November 2011, Uli checked in a large change which affected the
LC_NUMERIC settings of various es_* locales. This change didn't
reference any supporting documentation.
It's now being reported that various es_* locals have the wrong
LC_NUMERIC settings for the decimal mark and thousands separator.
First I compared the es_* locales to CLDR for LC_NUMERIC settings. This
turned up several differences (es_DO, es_GT, es_HN, es_MX, es_NI, es_PA,
es_PE, es_PR, es_SV).
For each of those locales I then went in search of documents, preferably
government documents which would show usage of the decimal mark and
thousands separator.
Mexico:
http://www.economia.gob.mx/files/diagnostico_economia_mexicana.pdf
Dominican Republic:
http://www.bancentral.gov.do/noticias/avisos/aviso2010-06-25.pdf
We can get grouping from this document from the Guatemala Government.
Once we know grouping uses ',', then the decimal mark must be '.'.
http://www.ine.gob.gt/np/enei/ENEI2011.htm
Honduras:
http://www.ine.gob.hn/drupal/node/175
http://archivo.laprensa.hn/Negocios/Ediciones/2011/02/07/Noticias/Tasa-de-desempleo-de-Honduras-subio-a-44
Nicaragua:
http://www.bcn.gob.ni/estadisticas/economicas_anuales/nicaragua_en_cifras/2010/Nicaragua_en_cifras2010.pdf
Panama:
http://www.mef.gob.pa/portal/2011-Comunicados/2011-DISMINUYESUSTANCIALMENTEELDESEMPLEOENPANAMA.html
Puerto Rico:
http://www.periodicolaperla.com/index.php?option=com_content&view=article&id=3606:en-puerto-rico-la-tasa-de-empleo-cae-al-nivel-mas-bajo-en-la-historia&catid=93:analisis-economico&Itemid=300
El Salvador:
http://www.minec.gob.sv/index.php?option=com_content&view=article&catid=1:noticias-ciudadano&id=1567:encuesta&Itemid=77
All the above referenced documents show a decimal mark as '.' and the
thousands separator as ',', which indicate glibc's localedata is wrong.
Interestingly enough, Peru which was supposed to use '.' as the decimal
separator and ',' as the thousands separator according to CLDR seems to
do the opposite according to these government inflation and labor reports:
http://www.bcrp.gob.pe/docs/Publicaciones/Reporte-Inflacion/2010/marzo/Reporte-de-Inflacion-Marzo-2010.pdf
http://www.inei.gob.pe/biblioineipub/bancopub/Est/Lib0909/libro.pdf
Thus es_PE is correct as-is.
This patch fixes es_DO, es_GT, es_HN, es_MX, es_NI, es_PA, es_PR and es_SV.
-------------- next part --------------
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index 248b009..121cdf6 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,15 @@
+2012-08-22 Jeff Law <law@redhat.com>
+
+ [BZ#14510]
+ * locales/es_DO: Fix LC_NUMERIC decimal_point and thousands_sep.
+ * locales/es_GT: Likewise.
+ * locales/es_HN: Likewise.
+ * locales/es_MX: Likewise.
+ * locales/es_NI: Likewise.
+ * locales/es_PA: Likewise.
+ * locales/es_PR: Likewise.
+ * locales/es_SV: Likewise.
+
2012-06-20 Petr Baudis <pasky@ucw.cz>
* locales/mag_IN: Fix comment character.
diff --git a/localedata/locales/es_DO b/localedata/locales/es_DO
index 7cf54cf..4753ecf 100644
--- a/localedata/locales/es_DO
+++ b/localedata/locales/es_DO
@@ -78,7 +78,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002E>"
+thousands_sep "<U002C>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_GT b/localedata/locales/es_GT
index 49d369f..5648d3d 100644
--- a/localedata/locales/es_GT
+++ b/localedata/locales/es_GT
@@ -77,7 +77,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_HN b/localedata/locales/es_HN
index a809188..561204b 100644
--- a/localedata/locales/es_HN
+++ b/localedata/locales/es_HN
@@ -78,7 +78,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_MX b/localedata/locales/es_MX
index 7a1cccc..13fa1a0 100644
--- a/localedata/locales/es_MX
+++ b/localedata/locales/es_MX
@@ -78,7 +78,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_NI b/localedata/locales/es_NI
index 7371532..a09ef4d 100644
--- a/localedata/locales/es_NI
+++ b/localedata/locales/es_NI
@@ -69,7 +69,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_PA b/localedata/locales/es_PA
index ae5cd3a..20ac243 100644
--- a/localedata/locales/es_PA
+++ b/localedata/locales/es_PA
@@ -78,7 +78,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_PR b/localedata/locales/es_PR
index b15ca45..9f79b28 100644
--- a/localedata/locales/es_PR
+++ b/localedata/locales/es_PR
@@ -69,7 +69,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
diff --git a/localedata/locales/es_SV b/localedata/locales/es_SV
index d99b6cf..674c4d3 100644
--- a/localedata/locales/es_SV
+++ b/localedata/locales/es_SV
@@ -78,7 +78,9 @@ n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
-copy "es_ES"
+decimal_point "<U002C>"
+thousands_sep "<U002E>"
+grouping 3;3
END LC_NUMERIC
LC_TIME
More information about the Libc-alpha
mailing list