Fix russian locale detection
This commit is contained in:
parent
7ac88a29f7
commit
241a56a1d8
@ -122,7 +122,7 @@ const char *get_dos_charset(const char *cpfrom)
|
|||||||
}
|
}
|
||||||
#if defined(__unix__)
|
#if defined(__unix__)
|
||||||
char* lang = getenv("LANG");
|
char* lang = getenv("LANG");
|
||||||
if( lang && strncmp(lang,"ru_RU",4) ) {
|
if( lang && strncmp(lang,"ru_RU",5) ) {
|
||||||
return "CP866";
|
return "CP866";
|
||||||
}else{
|
}else{
|
||||||
return "CP437";
|
return "CP437";
|
||||||
|
Reference in New Issue
Block a user