FS#54988 - [systemd] LC_* variable set to empty string

Attached to Project: Arch Linux
Opened by James Pike (jpike) - Monday, 31 July 2017, 12:55 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 12 October 2017, 02:37 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Dave Reisner (falconindy)
Christian Hesse (eworm)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

node package no longer supports locale


Additional info:
* node 8.2.1

Steps to reproduce:

% LANG=en_GB.UTF-8 node -e 'console.log((123456).toLocaleString())'

Shows `123456` should show `123,456`

Have done `localegen`, rebooted, set my locale to various others (en_US etc.)
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 12 October 2017, 02:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  systemd 235.0-1
Comment by James Pike (jpike) - Monday, 31 July 2017, 13:01 GMT
When I:

LC_ALL=$LANG node -e 'console.log((123456).toLocaleString())'

Then I get "123,456" as I would expect, but then I read at https://wiki.archlinux.org/index.php/locale#LC_ALL:_troubleshooting that LC_ALL is "to be used only for testing or troubleshooting purposes"

So I really dunno what is going on.
Comment by Doug Newgard (Scimmia) - Monday, 31 July 2017, 13:18 GMT
What is the output of `locale` and `locale -a`?
Comment by Eli Schwartz (eschwartz) - Monday, 31 July 2017, 16:49 GMT
The only locale variable I have set is LANG=en_US.UTF-8, and I can get these same results. Furthermore, I can get it to display a comma if I set LC_MESSAGES=$LANG

Knowing very little about locales myself, I have no idea whether that is good, bad, expected, indifferent, etc.

EDIT: I have no idea where it is set, as I certainly never did so manually, but all the LC_* variables are set and equal to the empty string. `unset LC_MESSAGES` also makes the comma appear.
Comment by Doug Newgard (Scimmia) - Monday, 31 July 2017, 17:05 GMT
Yeah, Eli, your locale setup is broken. We'll see if jpike's is similarly broken.
Comment by Eli Schwartz (eschwartz) - Monday, 31 July 2017, 18:07 GMT
So, we've been having a fascinating conversation on IRC about this, no one seems to know where this was initially set, except that Scimmia finally found a case where SDDM *unbreaks* something, so his setup is technically broken too. Yay. :)

EDIT: Oh, it's time for a systemd joke I guess: https://github.com/systemd/systemd/issues/6407
Comment by Doug Newgard (Scimmia) - Monday, 31 July 2017, 18:11 GMT

Loading...