[Bug 1076854] New: Don't set LC_CTYPE by default
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854 Bug ID: 1076854 Summary: Don't set LC_CTYPE by default Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: sbrabec@suse.com QA Contact: qa-bugs@suse.de CC: kstreitova@suse.com Found By: --- Blocker: --- Most GNU/Linux manuals say: If you want to change locale, set LANG variable. It is not true for SUSE. In SUSE, one has always unset or set LC_CTYPE as well, otherwise it may break. The breakage has a very low visibility for UTF-8 locales, but it can cause unexpected behavior in non-UTF-8 locales. If LC_CTYPE is unset, it is inherited from LANG. That is why I propose: As long as LC_CTYPE is not explicitly requested by /etc/sysconfig/language, don't set it. Non root: RC_LC_CTYPE == "" => LC_CTYPE is unset RC_LC_CTYPE != "" => LC_CTYPE=$RC_LC_TYPE Root: (ROOT_USES_LANG == yes) OR (ROOT_USES_LANG == no) => LC_CTYPE is unset (ROOT_USES_LANG == ctype) AND (RC_LC_CTYPE == "") => LC_CTYPE=$LANG (ROOT_USES_LANG == ctype) AND (RC_LC_CTYPE != "") => LC_CTYPE=$RC_LC_TYPE -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854#c1
--- Comment #1 from Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854#c2
Stefan Seyfried
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854#c3
--- Comment #3 from Stefan Seyfried
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854#c4
Stefan Seyfried
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854#c5
Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854#c6
Zhao Qiang 赵强
http://bugzilla.opensuse.org/show_bug.cgi?id=1076854
Stanislav Brabec
participants (1)
-
bugzilla_noreply@novell.com