Various charset fixes

This commit is contained in:
Alexander S. Aganichev
2001-11-05 14:40:27 +00:00
parent 35e87d37d4
commit 808511750e
6 changed files with 121 additions and 67 deletions

View File

@@ -81,6 +81,7 @@ const char *get_charset(void)
strcpy(charsetbuf, "LATIN-1");
cp = setlocale(LC_CTYPE, "");
if((cp != NULL) and ((cp = strchr(cp, '.')) != NULL)) {
cp++;
if(strieql(cp, "KOI8R") or strieql(cp, "KOI8"))
cp = "KOI8-R";
if(strieql(cp, "KOI8U"))