mirror of
https://github.com/ip7z/7zip.git
synced 2025-12-06 07:12:00 +01:00
fix by @defrag257
This commit is contained in:
parent
b557f6f6e1
commit
e60fa1f578
|
|
@ -558,10 +558,13 @@ void CItem::GetUnicodeString(UString &res, const AString &s, bool isComment, boo
|
|||
int lcLen = 0, i;
|
||||
|
||||
// Detect required code page name from current locale
|
||||
char *lc = setlocale(LC_CTYPE, "");
|
||||
char *lc = getenv("LC_ALL");
|
||||
if (!lc || !lc[0]) {
|
||||
lc = getenv("LC_CTYPE");
|
||||
}
|
||||
if (!lc || !lc[0]) {
|
||||
lc = getenv("LANG");
|
||||
}
|
||||
|
||||
if (lc && lc[0]) {
|
||||
// Compare up to the dot, if it exists, e.g. en_US.UTF-8
|
||||
|
|
|
|||
Loading…
Reference in a new issue