Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7004 → Rev 7005

/programs/develop/libraries/iconv/iconv.c
47,8 → 47,17
#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;
if (!strcmp(what,"windows-1252")) return CP1252;