[newlib-cygwin] __loadlocale: Set missing val when evaluating CP874
Corinna Vinschen
corinna@sourceware.org
Mon Aug 15 09:27:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=beb721cf37b9b97229eba293f1fad7a6ccec1e5e
commit beb721cf37b9b97229eba293f1fad7a6ccec1e5e
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Wed Jul 27 22:27:06 2016 +0200
__loadlocale: Set missing val when evaluating CP874
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
newlib/libc/locale/locale.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 6f7e908..3409a7b 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -857,6 +857,7 @@ restart:
++c;
if (strcasecmp (c, "620"))
FAIL;
+ val = 874;
strcpy (charset, "CP874");
mbc_max = 1;
#ifdef _MB_EXTENDED_CHARSETS_WINDOWS
More information about the Newlib-cvs
mailing list