From 5ac8ef4526878e3cbc5e604e61f9a868b1cfe560 Mon Sep 17 00:00:00 2001 From: ashmew2 Date: Fri, 12 May 2017 20:26:26 +0000 Subject: [PATCH] Add Windows-1252 (CP1252) to iconv library git-svn-id: svn://kolibrios.org@6892 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/iconv/iconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/develop/libraries/iconv/iconv.c b/programs/develop/libraries/iconv/iconv.c index bd6a1381c6..0781f32551 100644 --- a/programs/develop/libraries/iconv/iconv.c +++ b/programs/develop/libraries/iconv/iconv.c @@ -48,15 +48,15 @@ int strcmp (const char* a, const char* b) int encoding(const char *what) { - + if (!strcmp(what,"CP866")) return CP866; if (!strcmp(what,"CP1251")) return CP1251; + if (!strcmp(what,"windows-1252")) return CP1252; if (!strcmp(what,"CP1252")) return CP1252; if (!strcmp(what,"KOI8-RU")) return KOI8_RU; if (!strcmp(what,"ISO8859-5")) return ISO8859_5; if (!strcmp(what,"UTF-8")) return UTF_8; return -1; - }