public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] loadlocale: don't casecmp digits
@ 2020-09-04 12:40 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-09-04 12:40 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=12a94daf5f5eca96edfb3306be470f831df8f2ce

commit 12a94daf5f5eca96edfb3306be470f831df8f2ce
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Sep 4 14:21:10 2020 +0200

    loadlocale: don't casecmp digits
    
    strcmp is sufficient here
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/locale/locale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 7b1b0662c..2c452ba98 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -857,7 +857,7 @@ restart:
       c = charset + 3;
       if (*c == '-')
 	++c;
-      if (strcasecmp (c, "620"))
+      if (strcmp (c, "620"))
       	FAIL;
       val = 874;
       strcpy (charset, "CP874");


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-04 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 12:40 [newlib-cygwin] loadlocale: don't casecmp digits Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).