Disregard //TRANSLIT or //IGNORE in encodings

git-svn-id: svn://kolibrios.org@7005 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
ashmew2 2017-09-23 19:36:45 +00:00
parent 52a56199a3
commit 073a91d371

View File

@ -47,7 +47,16 @@ int strcmp (const char* a, const char* b)
#include "utf8.h"
int encoding(const char *what) {
int encoding(char *what) {
/* Ignore //TRANSLIT or //IGNORE for now. */
int i;
for(i = 0; i < strlen(what); i++) {
if(what[i] == '/') {
what[i] = '\0';
break;
}
}
if (!strcmp(what,"CP866")) return CP866;
if (!strcmp(what,"CP1251")) return CP1251;