|
Bugzilla – Full Text Bug Listing |
| Summary: | systemd uses wrong locale | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Stefan Seyfried <seife> |
| Component: | Basesystem | Assignee: | Frederic Crozat <fcrozat> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | fcrozat, Stromeko |
| Version: | 13.1 Milestone 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Third Party Developer/Partner | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Stefan Seyfried
2012-11-30 13:48:40 UTC
standard root user locale: susi:~ # locale LANG=POSIX LC_CTYPE=de_DE.UTF-8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX"susi:~ # locale LANG=POSIX LC_CTYPE=de_DE.UTF-8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= I guess enforcing (or not) English for root is debatable :) systemd doesn't handle ROOT_USE_LANG for now. I'll see what I can do (but of course, patch would be welcome ;) fix will be available in a few minutes at http://download.opensuse.org/repositories/home:/fcrozat:/branches:/Base:/System/openSUSE_Factory/ please test Yes, works. But I think the patch is incomplete (i just checked the sysconfig/language description and /etc/profile.d/lang.sh): * if ROOT_USES_LANG == yes => behaviour as before the handle-root-uses-lang.patch * else if ROOT_USES_LANG == ctype => LANG=POSIX, LC_CTYPE=$RC_LANG -> this is implemented in handle-root-uses-lang.patch * else (ROOT_USES_LANG != yes && != ctype) => LANG=POSIX The default of ROOT_USES_LANG (even if unset) is "no", even though the comment in my /etc/sysconfig/language says the default would be "ctype". So the missing case in the patch is the "ROOT_USES_LANG != yes". ... and IMHO for system daemons this is also a better default ... I've updated the patch in my repository, please test again, it looks like it is doing the same thing as "before". Still works for me (with ROOT_USES_LANG=ctype) and the patch looks correct. Thanks! This is an autogenerated message for OBS integration: This bug (792182) was mentioned in https://build.opensuse.org/request/show/144340 Factory / systemd *** Bug 807608 has been marked as a duplicate of this bug. *** closing as fixed |