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:
parent
8853f93318
commit
7971144140
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user