Bug 23094 - hr_HR: wrong thousands_sep and mon_thousands_sep
Summary: hr_HR: wrong thousands_sep and mon_thousands_sep
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: 2.27
: P2 normal
Target Milestone: 2.28
Assignee: Mike FABIAN
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-20 08:16 UTC by Krešimir Kovačević
Modified: 2018-04-24 13:51 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
hr_HR patched file (2.90 KB, text/plain)
2018-04-20 08:24 UTC, Krešimir Kovačević
Details
Fixing mon_thousands_sep and thousands_sep to "." (252 bytes, patch)
2018-04-20 09:51 UTC, Dragan Stanojevic - Nevidljivi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krešimir Kovačević 2018-04-20 08:16:55 UTC
hr_HR file has wrong values for thousands_sep and mon_thousands_sep.
Current value is "<U202F>" it should be "."

Arguments for this change:

1)
 CLDR uses "." for grouping and "," as the decimal point.
 See common/main/hr.xml file.
2)
 All CNB (Croatian National Bank) reports has . as thousands separator  (www.hnb.hr).
3)
 All receipts that you will see in Croatia has . as thousands separator.
4)
 All banking apps use . as thousands separator (checked few random banks).
5)
 Browsed through Croatian Constitution, again "." as thousands separator.
6)
 Croatian Ministry of Finance use ".".
7)And most unpopular reason that I can think of: 
Windows 10 (and all previous  versions) has "." as thousands and "," for decimal separator (numeric and monetary). You just forced me to find pc with windows :D
Comment 1 Krešimir Kovačević 2018-04-20 08:24:52 UTC
Created attachment 10965 [details]
hr_HR patched file
Comment 2 Krešimir Kovačević 2018-04-20 08:33:40 UTC
I have also browsed through older versions of glibc.
It seems that all have wrong separators for thousands and decimal.
thousands should be "." and decimal should be ",".

BR,
Krešimir
Comment 3 Dragan Stanojevic - Nevidljivi 2018-04-20 09:51:13 UTC
Created attachment 10966 [details]
Fixing mon_thousands_sep and thousands_sep to "."

OK, bug report and arguments for it are valid.

Provided patch isn't a patch but a full localedata file. Therefore this patch is provided which changes only affected portion of the locale.
Comment 4 Krešimir Kovačević 2018-04-20 11:30:00 UTC
Hi Dragan,

Your patch is OK.
But in comment you written "," in instead "."

BR,
Krešimir
Comment 5 Dragan Stanojevic - Nevidljivi 2018-04-20 12:03:27 UTC
Fixed comment :)
Comment 6 Sourceware Commits 2018-04-23 15:04:58 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  ea76691a7507b052a15b9dddb5847afa2b57d2a4 (commit)
      from  573963e32ffac46d9891970ddebde2ac3212c5c0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ea76691a7507b052a15b9dddb5847afa2b57d2a4

commit ea76691a7507b052a15b9dddb5847afa2b57d2a4
Author: Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
Date:   Mon Apr 23 16:54:31 2018 +0200

    hr_HR locale: fix thousands_sep and mon_thousands_sep
    
    	[BZ #23094]
    	* localedata/locales/hr_HR: fix thousands_sep and
    	mon_thousands_sep

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                |    6 ++++++
 localedata/locales/hr_HR |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
Comment 7 Mike FABIAN 2018-04-23 15:07:18 UTC
Fixed in glibc master
Comment 8 jsm-csl@polyomino.org.uk 2018-04-23 20:11:12 UTC
How was this commit tested?  I'm seeing failures of stdlib/tst-strfmon_l 
now, for locale hr_HR.UTF-8.
Comment 9 Tulio Magno Quites Machado Filho 2018-04-24 12:07:09 UTC
(In reply to joseph@codesourcery.com from comment #8)
> I'm seeing failures of stdlib/tst-strfmon_l now, for locale hr_HR.UTF-8.

For the record: a fix for those errors has been proposed at https://sourceware.org/ml/libc-alpha/2018-04/msg00491.html
Comment 10 Mike FABIAN 2018-04-24 13:10:12 UTC
(In reply to joseph@codesourcery.com from comment #8)
> How was this commit tested?  I'm seeing failures of stdlib/tst-strfmon_l 
> now, for locale hr_HR.UTF-8.

Sorry, I thought I had run make check but apparently I just looked
at the result from a previous run.

I’ll fix it immediately!
Comment 11 Sourceware Commits 2018-04-24 13:51:01 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  e5aea5c314f1f2c4e31e2ca29578ca1a9f2b9b55 (commit)
      from  9320ca88a197d3620d3553ccc2d9402d981d7e23 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e5aea5c314f1f2c4e31e2ca29578ca1a9f2b9b55

commit e5aea5c314f1f2c4e31e2ca29578ca1a9f2b9b55
Author: Mike FABIAN <mfabian@redhat.com>
Date:   Tue Apr 24 15:04:43 2018 +0200

    Fix tst-strfmon_l test for hr_HR locale
    
    The test needs to be adapted for the change in the thousands separators:
    
    “hr_HR locale: fix thousands_sep and mon_thousands_sep” [BZ #23094]

-----------------------------------------------------------------------

Summary of changes:
 stdlib/tst-strfmon_l.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)