forked from KolibriOS/kolibrios
Disregard //TRANSLIT or //IGNORE in encodings
git-svn-id: svn://kolibrios.org@7005 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -47,7 +47,16 @@ int strcmp (const char* a, const char* b)
|
|||||||
#include "utf8.h"
|
#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,"CP866")) return CP866;
|
||||||
if (!strcmp(what,"CP1251")) return CP1251;
|
if (!strcmp(what,"CP1251")) return CP1251;
|
||||||
|
Reference in New Issue
Block a user