This is the mail archive of the
mailing list for the GNU libc locales project.
Re: [PATCH] Fix decimal_point and thousands_sep in es_MX locale
- From: Carlos O'Donell <carlos_odonell at mentor dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: <libc-alpha at sourceware dot org>, <libc-locales at sourceware dot org>
- Date: Sun, 3 Jun 2012 20:37:06 -0400
- Subject: Re: [PATCH] Fix decimal_point and thousands_sep in es_MX locale
- References: <20120602195316.GA5950@volta.aurel32.net>
On 6/2/2012 3:53 PM, Aurelien Jarno wrote:
> The following patch fixes the value of decimal_point and thousands_sep
> for the es_MX locale, which have been broken by commit 4b19cd7a.
In the future please provide a more descriptive problem definition.
For example stating the current character used for the decimal point
and that of the thousands separator, and then stating what you
change them to (along with a verbal definition e.g. "full stop"
for <U002E>) would help the reviewer.
I know that writing clear and concise problem descriptions is time
consuming, but so is review :-)
> - for decimal_point it's basically reverting to the previous version
> before commit 4b19cd7a.
> - the change is consistent with mon_decimal_point and mon_thousands_sep
> - http://en.wikipedia.org/wiki/Decimal_mark
> - For those speaking Spanish, the official norm is available:
> http://www.ine.gob.mx/publicaciones/download/008scfi.pdf (page 57)
Spanish is my first language and I read the document.
Call this 
> amended by:
I also read this document.
Call this 
> These links shows that it was officially a coma instead of a dot
> starting from 2002, but given that nobody used it, it has been
> switch to coma *or* dot. The dot is the one used in practice.
Correct,  amends  and allows comma or full-stop to be used.
> diff --git a/localedata/ChangeLog b/localedata/ChangeLog
> index 975e59f..a1b5971 100644
> --- a/localedata/ChangeLog
> +++ b/localedata/ChangeLog
> @@ -1,3 +1,8 @@
> +2012-06-02 Aurelien Jarno <firstname.lastname@example.org>
> + * locales/es_MX (LC_NUMERIC): Correctly set decimal_point,
> + thousands_sep and grouping.
> 2012-04-20 Chandan Kumar <email@example.com>
> diff --git a/localedata/locales/es_MX b/localedata/locales/es_MX
> index 7a1cccc..21715b1 100644
> --- a/localedata/locales/es_MX
> +++ b/localedata/locales/es_MX
> @@ -78,7 +78,9 @@ n_sign_posn 1
> END LC_MONETARY
> -copy "es_ES"
> +decimal_point "<U002E>"
This is OK.
> +thousands_sep "<U002C>"
This is not correct (and it was previously not correct either).
According to  this must be a "small space" (pequeño espacio), and must never be a comma, point, or other symbol.
There is a `thin space' <U+2009> which probably serves the best purpose here.
What do other OSs do?
> +grouping 3;3
This is correct according to , but is the same as es_ES and so doesn't change.
> END LC_NUMERIC
Mentor Graphics / CodeSourcery
+1 (613) 963 1026