Bug 26727 - sys-libs/glibc : Wrong locale be_BY (LC_MONETARY should be BYN, is BYR)
Summary: sys-libs/glibc : Wrong locale be_BY (LC_MONETARY should be BYN, is BYR)
Status: UNCONFIRMED
Alias: None
Product: glibc
Classification: Unclassified
Component: locale (show other bugs)
Version: 2.31
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-12 07:34 UTC by Sergey
Modified: 2020-10-12 15:43 UTC (History)
4 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 Sergey 2020-10-12 07:34:18 UTC
The current code of the Belarussian currency is BYN according to ISO 4217  (https://www.currency-iso.org/en/home/tables/table-a1.html ) 

The current code in glibc  has other value:
(https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/locales/be_BY;h=defb2d782f0efa150eb5ac52e30bfaf13b1c9cb7;hb=HEAD#l105)


LC_MONETARY
int_curr_symbol           "BYR "
currency_symbol           "<U0440><U0443><U0431>"
mon_decimal_point         "."
mon_thousands_sep         "<U202F>"
mon_grouping              3;3
positive_sign             ""
negative_sign             "-"
int_frac_digits           2
frac_digits               2
p_cs_precedes             0
p_sep_by_space            1
n_cs_precedes             0
n_sep_by_space            1
p_sign_posn               1
n_sign_posn               1
END LC_MONETARY
Comment 1 Florian Weimer 2020-10-12 09:46:15 UTC
It looks like Belarus underwent various currency reforms going from BYR to BYB to BYN.

Do we have to adjust currency_symbol as well?  Should it be "Br "?
Comment 2 Sergey 2020-10-12 15:43:19 UTC
In July 2016, a new ruble was introduced (ISO 4217 code BYN), at a rate of 1 BYN 
= 10,000 BYR. 

A Currency symbol is Br according Wikipedia (https://en.wikipedia.org/wiki/Belarusian_ruble)