Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#16282 - [slim] overrides locale settings, doesn't pass LANG (fix included)

Attached to Project: Arch Linux
Opened by Alex Ferguson (B_Lizzard) - Sunday, 20 September 2009, 12:28 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 06 December 2009, 22:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

slim overrides the LANG variable, leading to problems with several applications (problems experienced with XFCE Terminal and OpenOffice.org at least).

Additional info:

Tested with version 1.3.1-2. Terminal couldn't display international characters due to encoding issues when started with slim as the session manager. When started in plain X, Terminal worked fine. I concluded this was because slim didn't pass some locale settings. Debian bug #441630 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441630) also helped.

The issue is fixed in the /etc/pam.d/slim file, making pam read the /etc/profile.d/locale.sh file, which is automatically generated during startup according to the settings in /etc/rc.conf.

Attached is a patch that adds the line in slim.pam and fixes the issue. I've been using slim like this for a month and I've seen no side-effects.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 06 December 2009, 22:59 GMT
Reason for closing:  Not a bug
Comment by Alex Ferguson (B_Lizzard) - Sunday, 06 December 2009, 18:42 GMT
  • Field changed: Percent Complete (100% → 0%)
Same problems after complete reinstallation of ArchLinux. The only things I have installed are "xorg", "xfce4" and "slim". Running "locale" in the XFCE terminal has LANG and LC_ALL empty, and the rest of the variables set to POSIX. Is there no-one else that can confirm this?
Comment by Alex Ferguson (B_Lizzard) - Sunday, 06 December 2009, 22:56 GMT
Tested again, and I found the real reason why slim didn't pass the locale settings through to the environment.

Setting up login_cmd in slim.conf to launch a session directly (e.g. 'exec startxfce4', not 'exec /bin/bash -login ~/.xinitrc') without xinit made slim to override the settings provided by the environment. I set the system up that way to avoid possible (even minor) overhead, as I imagined slim was perfectly capable of setting it's own environment up. It won't.

Feel free to close this, I'll document my stupidity on the wiki.

Loading...