mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 16:16:50 +03:00
Disregard //TRANSLIT or //IGNORE in encodings
git-svn-id: svn://kolibrios.org@7005 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
52a56199a3
commit
073a91d371
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user