Fix russian locale detection

This commit is contained in:
Stas Degteff 2007-02-05 06:53:13 +00:00
parent 7ac88a29f7
commit 241a56a1d8

View File

@ -122,7 +122,7 @@ const char *get_dos_charset(const char *cpfrom)
}
#if defined(__unix__)
char* lang = getenv("LANG");
if( lang && strncmp(lang,"ru_RU",4) ) {
if( lang && strncmp(lang,"ru_RU",5) ) {
return "CP866";
}else{
return "CP437";