Bug 220839 - Locale not being set from login.conf.db
Summary: Locale not being set from login.conf.db
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2017-07-18 19:29 UTC by MMacD
Modified: 2018-11-16 23:03 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description MMacD 2017-07-18 19:29:08 UTC
To get thousands separators in file sizes, I added values (0x2C) for thousand_sep and thousep in /etc/login.conf, and called cap_mkdb to update the db.

Inspection of /etc/login.conf.db showed that those vars were now defined.

But when I logged in again and called locale -k, the values were again/still the empty string.

Even saving a copy of login.conf as ~/.login.conf, per the docs, and cap_mkdb'ing there, too, made no difference.

Apparently there's some locale data hardcoded somewhere that's being used, while the config files and their databases are being ignored.
Comment 1 Yuri Pankov freebsd_committer 2018-11-16 23:03:35 UTC
Where is it documented that keywords in login.conf override the locale data?  I can't find anything related in the code and/or documentation.