[Bug 505417] New: sysconfig editor: LANG for root is ignored
http://bugzilla.novell.com/show_bug.cgi?id=505417 Summary: sysconfig editor: LANG for root is ignored Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bluedzins@wp.pl QAContact: jsrain@novell.com Found By: --- There are two nodes: environment/language/root_uses_lang environment/language/rc_lc_ctype that are related to setting LANG for root. The problem is no matter what the values are, LANG is always (as the effect) set to "POSIX". You can check it by executing set | grep -i lang in console. The only way to set LANG for root account for real is modify for example bashrc and add entry for LANG manually. Of course it is workaround, sysnconfig editor should set it (somehow) according to its own description. "This defines if the user "root" should use the locale settings which are defined here." (the first node) It is defined and it is not used. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=505417 Zheng Chen <zchen@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zchen@novell.com AssignedTo|bnc-team-screening@forge.pr |lslezak@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=505417 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=505417#c1 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low AssignedTo|lslezak@novell.com |ro@novell.com Severity|Normal |Enhancement --- Comment #1 from Ladislav Slezak <lslezak@novell.com> 2009-06-08 05:43:20 MDT --- It works for me, you have to relogin (or start a new shell) after changing the values. The values are read by shell at startup, if you change them they won't take effect in the already running processes. My steps: initial config: ROOT_USES_LANG="ctype" RC_LANG="en_US.UTF-8" run "locale" to get the current status: # locale LANG=POSIX LC_CTYPE=en_US.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= See, only LC_CTYPE is set (as configured by ROOT_USES_LANG value). Then set ROOT_USES_LANG="yes" RC_LANG="cs_CZ.UTF-8" THEN RELOGIN OR START A NEW SHELL the output will be: # locale LANG=cs_CZ.UTF-8 LC_CTYPE="cs_CZ.UTF-8" LC_NUMERIC="cs_CZ.UTF-8" LC_TIME="cs_CZ.UTF-8" LC_COLLATE="cs_CZ.UTF-8" LC_MONETARY="cs_CZ.UTF-8" LC_MESSAGES="cs_CZ.UTF-8" LC_PAPER="cs_CZ.UTF-8" LC_NAME="cs_CZ.UTF-8" LC_ADDRESS="cs_CZ.UTF-8" LC_TELEPHONE="cs_CZ.UTF-8" LC_MEASUREMENT="cs_CZ.UTF-8" LC_IDENTIFICATION="cs_CZ.UTF-8" LC_ALL= All values are set correctly, no problem here. The only problem I see is a better description of the variables: - comment in ROOT_USES_LANG should tell users that "yes" value will set the locale (it mentions only "ctype" value, it's not obvious to use "yes" value). It's mentioned in RC_LANG comment but IMO it should (also) be in ROOT_USES_LANG. - it should be clear that the new values will take effect only in new started shells/programs. Reassigning to aaa_base maintainer... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=505417 User bluedzins@wp.pl added comment http://bugzilla.novell.com/show_bug.cgi?id=505417#c2 --- Comment #2 from Maciej Pilichowski <bluedzins@wp.pl> 2009-06-08 09:51:39 MDT --- Thank you for the information. I strongly suggest removing word "uses". Without your explanation I would still not know how it works, because I interpreted "uses=reads" while in fact "uses=writes" here. -- Configure bugmail: http://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=505417 https://bugzilla.novell.com/show_bug.cgi?id=505417#c3 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Ruediger Oertel <ro@suse.com> 2013-11-11 16:21:01 UTC --- pushed to aaa_base git -- 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=505417 https://bugzilla.novell.com/show_bug.cgi?id=505417#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-11-13 09:00:13 CET --- This is an autogenerated message for OBS integration: This bug (505417) was mentioned in https://build.opensuse.org/request/show/206707 Factory / aaa_base -- 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