diff --git a/goldlib/gall/gcharset.cpp b/goldlib/gall/gcharset.cpp index 40b73e9..a98011e 100644 --- a/goldlib/gall/gcharset.cpp +++ b/goldlib/gall/gcharset.cpp @@ -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";