mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
reverted the last test commit (duh)
This commit is contained in:
19
src/main.c
19
src/main.c
@@ -717,25 +717,22 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
if (Locale) {
|
||||
/* return of wstrconcat should not be free-ed! read putenv man page */
|
||||
putenv(wstrconcat("LANG=", Locale));
|
||||
} else {
|
||||
Locale = getenv("LC_ALL");
|
||||
if (!Locale) {
|
||||
Locale = getenv("LANG");
|
||||
}
|
||||
if (!Locale) {
|
||||
Locale = getenv("LC_ALL");
|
||||
}
|
||||
if (!Locale) {
|
||||
Locale = getenv("LANG");
|
||||
}
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
if (!Locale || strcmp(Locale, "C")==0 || strcmp(Locale, "POSIX")==0)
|
||||
Locale = NULL;
|
||||
Locale = NULL;
|
||||
#ifdef I18N
|
||||
if (getenv("NLSPATH"))
|
||||
bindtextdomain("WindowMaker", getenv("NLSPATH"));
|
||||
bindtextdomain("WindowMaker", getenv("NLSPATH"));
|
||||
else
|
||||
bindtextdomain("WindowMaker", LOCALEDIR);
|
||||
bindtextdomain("WindowMaker", LOCALEDIR);
|
||||
textdomain("WindowMaker");
|
||||
|
||||
if (!XSupportsLocale()) {
|
||||
|
||||
Reference in New Issue
Block a user