WebView: use custom C-- function if CP1251 to CP866 convert is failed in iconv.obj (the case for 4pda.to)

Please somebody fix iconv...

git-svn-id: svn://kolibrios.org@9306 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-11-24 21:06:54 +00:00
parent 7aed43b0ca
commit a6e0b135b3
2 changed files with 4 additions and 1 deletions

View File

@ -107,4 +107,4 @@ char editbox_icons[] = FROM "res/editbox_icons.raw";
#define DEFAULT_URL URL_SERVICE_HOMEPAGE #define DEFAULT_URL URL_SERVICE_HOMEPAGE
char version[]="WebView 3.62b"; char version[]="WebView 3.62c";

View File

@ -45,6 +45,9 @@ dword ChangeCharset(dword from_chs, to_chs, conv_buf)
if (from_chs == CH_UTF8) && (to_chs == CH_CP866) { if (from_chs == CH_UTF8) && (to_chs == CH_CP866) {
utf8rutodos(conv_buf); utf8rutodos(conv_buf);
} }
if (from_chs == CH_CP1251) && (to_chs == CH_CP866) {
wintodos(conv_buf);
}
} else { } else {
strcpy(conv_buf, new_buf); strcpy(conv_buf, new_buf);
} }