Commit c6e4493d authored by Felix Paul Kühne's avatar Felix Paul Kühne

darwinvlc: fix automatic language selection (close #9914)

parent 325764ec
......@@ -185,9 +185,11 @@ int main( int i_argc, const char *ppsz_argv[] )
lang = (char *)malloc(maxSize);
CFStringGetCString(language, lang, maxSize - 1, kCFStringEncodingUTF8);
}
char tmp[11];
snprintf(tmp, 11, "LANG=%s", lang);
putenv(tmp);
if (strncmp( lang, "auto", 4 )) {
char tmp[11];
snprintf(tmp, 11, "LANG=%s", lang);
putenv(tmp);
}
CFRelease(language);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment