From 241a56a1d837d36755341bc696977c566c58a4a7 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Mon, 5 Feb 2007 06:53:13 +0000 Subject: [PATCH] Fix russian locale detection --- goldlib/gall/gcharset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";