n_sign_posn from localeconv wrong for en_US locale
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| glibc (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Bug Description
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
The `n_sign_posn` from `localeconv()` is wrong for the en_US locale. This means that Accounting formats will put a negative sign before the value instead of wrapping the value in parens. Code:
python
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.
'en_US'
>>> locale.localeconv()
{'int_
Here is the Windows version:
{'int_
The correct value (0) means that negative numbers get wrapped in ( ). The ubuntu value of 1 means that a minus sign precedes the value.

Thanks for your report!
Ubuntu uses the locale definitions provided by glibc, and this kind of request should be made via an upstream bug report:
https:/ /sourceware. org/bugzilla/ enter_bug. cgi?product= glibc;component =localedata
If you file such a bug, please include a convincing justification of the proposed change. Just claiming that the current value is "wrong" won't make the upstream maintainers too happy. ;)