Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 275301

Summary: gnome-base/gdm breaks the LINGUAS variable
Product: Gentoo Linux Reporter: James Le Cuirot <chewi>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471508
Whiteboard:
Package list:
Runtime testing required: ---

Description James Le Cuirot gentoo-dev 2009-06-24 16:16:42 UTC
I switched to GDM from Slim a little while back and I've since noticed that my LINGUAS variable has been set wrong. If GDM_LANG gets set then it overwrites LINGUAS with the contents of LANG. In my case, this is en_GB.UTF-8 but I want it to be "en en_GB" since the UTF-8 part makes no sense for LINGUAS. When using Portage, LINGUAS is effectively blank since it doesn't recognise en_GB.UTF-8.

The overwriting happens in /etc/X11/gdm/Xsession and can easily be removed. In a way, this could be expected behaviour but it causes problems, not only because of the UTF-8 suffix but also because of a bug in GDM that causes GDM_LANG to always be set, even if you've only chosen the "System Default" language. See the given URL for the Debian bug report on this issue.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-28 08:54:01 UTC
Why are you defining LINGUAS at all ? This should most likely only be defined in your make.conf or user profile since this variable is of no use to users not compiling.
Comment 2 James Le Cuirot gentoo-dev 2009-06-28 09:34:41 UTC
Sorry, I didn't realise that. I'd put it in /etc/env.d/02locale with the others. Thanks.