mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=893 - Fixing the
bug that Xprt did not honor ${LC_ALL} when looking for model-config
dirs.
This commit is contained in:
@@ -171,7 +171,12 @@ XpGetConfigDir(Bool useLocale)
|
||||
if(useLocale == False) langDir = "/C";
|
||||
else
|
||||
{
|
||||
if((langName = getenv("LANG")) == (char *)NULL)
|
||||
langName = getenv("LC_ALL");
|
||||
if (langName == NULL) {
|
||||
langName = getenv("LANG");
|
||||
}
|
||||
|
||||
if(langName == (char *)NULL)
|
||||
return (char *)NULL;
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user