public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] loadlocale: don't casecmp digits Date: Fri, 4 Sep 2020 12:40:18 +0000 (GMT) [thread overview] Message-ID: <20200904124018.D03A9386F461@sourceware.org> (raw) 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");
reply other threads:[~2020-09-04 12:40 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200904124018.D03A9386F461@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).