[Bug 792182] New: systemd uses wrong locale
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c0 Summary: systemd uses wrong locale Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: seife@novell.slipkontur.de QAContact: qa-bugs@suse.de CC: fcrozat@suse.com Found By: Third Party Developer/Partner Blocker: --- I have set my locale to german, but root should only use LC_CTYPE: susi:~ # grep -v ^# /etc/sysconfig/language|grep -v '""'|grep -v ^$ RC_LANG="de_DE.UTF-8" ROOT_USES_LANG="ctype" AUTO_DETECT_UTF8="no" However, systemd-started services use LANG=de_DE.UTF-8: susi:~ # pidof libvirtd 1216 susi:~ # cat /proc/1216/environ|xargs -0 -n1 echo ROOTFS_FSTYPE=ext4 ROOTFS_FSCK=0 OLDPWD=/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin vga=0x367 splash=silent ROOTFS_BLKDEV=/dev/disk/by-label/root-FACTORY LANG=de_DE.UTF-8 LIBVIRTD_CONFIG=/etc/libvirt/libvirtd.conf LIBVIRTD_ARGS=--listen And thus pollute syslog etc. with german messages. IMVHO, systemd should respect teh ROOT_USES_LANG setting. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c1 --- Comment #1 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-11-30 14:49:57 CET --- 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= -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c2 --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2012-11-30 14:06:25 UTC --- 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 ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2012-11-30 17:37:57 UTC --- fix will be available in a few minutes at http://download.opensuse.org/repositories/home:/fcrozat:/branches:/Base:/Sys... please test -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c4 --- Comment #4 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-11-30 20:02:40 CET --- 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 ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jren@suse.com AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2012-12-03 14:07:53 UTC --- I've updated the patch in my repository, please test again, it looks like it is doing the same thing as "before". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c6 --- Comment #6 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-12-05 09:16:47 CET --- Still works for me (with ROOT_USES_LANG=ctype) and the patch looks correct. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-12-05 20:00:15 CET --- This is an autogenerated message for OBS integration: This bug (792182) was mentioned in https://build.opensuse.org/request/show/144340 Factory / systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c8 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Stromeko@NexGo.DE --- Comment #8 from Frederic Crozat <fcrozat@suse.com> 2013-03-11 16:26:57 UTC --- *** Bug 807608 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=807608 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=792182 https://bugzilla.novell.com/show_bug.cgi?id=792182#c9 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Frederic Crozat <fcrozat@suse.com> 2013-03-12 10:52:21 UTC --- closing as fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com