Bug 25233 - Consider "." as the thousands separator for sl_SI (Slovenian)
Summary: Consider "." as the thousands separator for sl_SI (Slovenian)
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 2.31
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-29 11:55 UTC by Florian Weimer
Modified: 2020-01-09 22:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Weimer 2019-11-29 11:55:50 UTC
Originally reported here: https://sourceware.org/ml/libc-locales/2019-q4/msg00090.html

Cursory research confirms this.

<https://www.gov.si/assets/ministrstva/MDDSZ/VZD-/Resolucija-o-nacionalnem-programu-VZD.pdf>

linked from

<https://www.gov.si/podrocja/zaposlovanje-delo-in-upokojitev/varnost-in-zdravje-pri-delu/>

uses a dot as the separator:

| Zaradi duševnih motenj je bilo pri izbranih zdravnikih v Sloveniji med
| letoma 2009 in 2013 v povprečju 18.471 primerov bolniškega dopusta na
| leto, kar je 2,5 odstotka vseh bolniških dopustov.

Translated as (also linked available from the page):

| Doctors in Slovenia registered an average of 18,471 cases of sick
| leave per year due to mental disorders between 2009 and 2013, which is
| 2.5 per cent of all cases of sick leave.
Comment 1 Rafal Luzynski 2020-01-03 11:31:48 UTC
This is correct according to CLDR [1] as well.  The patch is here: [2]

Some remarks:

* The old thousands separator is not a regular space (<U0020>), it's a <U202F> character, narrow no-break space, which indeed may be displayed as a space if a constant width font is used.
* This patch fixes both LC_MONETARY (monetary formatting, strfmon) and LC_NUMERIC (non-monetary numeric formatting, sprintf and other functions of the family).
* Note that in LC_NUMERIC section of sl_SI grouping is set to "0;0" which means that no thousands grouping will be used, at least by the libraries which respect this setting.

[1] https://st.unicode.org/cldr-apps/v#/sl/Symbols/
[2] https://sourceware.org/ml/libc-alpha/2020-01/msg00042.html
Comment 2 Sourceware Commits 2020-01-07 23:21:05 UTC
The master branch has been updated by Rafal Luzynski <rl@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=135540285cb44f820dac41c2b95531db33658f9f

commit 135540285cb44f820dac41c2b95531db33658f9f
Author: Rafał Lużyński <digitalfreak@lingonborough.com>
Date:   Fri Jan 3 12:11:20 2020 +0100

    sl_SI locale: Use "." as the thousands separator (bug 25233)
    
    This is correct according to CLDR [1] and Florian Weimer's quick
    research. [2]
    
    [1] https://st.unicode.org/cldr-apps/v#/sl/Symbols/
    [2] https://sourceware.org/bugzilla/show_bug.cgi?id=25233#c0
    
    Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Comment 3 Rafal Luzynski 2020-01-07 23:27:02 UTC
Fixed by the commit 135540285cb44f820dac41c2b95531db33658f9f.