Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-07-08 11:25:49 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-07-08 11:25:49 +0300
commitb90a91a61800706ff83c47431658515dda90399c (patch)
treec76336474531dd187c000ec7ad4d6f4df3ff8793 /winsup/utils
parente6b882b9573d8388199faf856d1707e5d4375e06 (diff)
tzset: Check timezone and country case-insensitive
* tzset.c (main): Check timezone and country case-insensitive. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/tzset.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 5a68a40cd..db6049bb1 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,7 @@
+2015-07-08 Corinna Vinschen <corinna@vinschen.de>
+
+ * tzset.c (main): Check timezone and country case-insensitive.
+
2015-06-07 Jon Turney <jon.turney@dronecode.org.uk>
* strace.cc (proc_child): Log process and thread create and exit,
diff --git a/winsup/utils/tzset.c b/winsup/utils/tzset.c
index 2b3f413be..0e22f44df 100644
--- a/winsup/utils/tzset.c
+++ b/winsup/utils/tzset.c
@@ -207,11 +207,11 @@ main (int argc, char **argv)
/* Now iterate over the mapping table and find the right entry. */
for (idx = 0; idx < TZMAP_SIZE; ++idx)
{
- if (!wcscmp (keyname, tzmap[idx].win_tzkey))
+ if (!wcscasecmp (keyname, tzmap[idx].win_tzkey))
{
if (gotit < 0)
gotit = idx;
- if (!wcscmp (country, tzmap[idx].country))
+ if (!wcscasecmp (country, tzmap[idx].country))
break;
}
else if (gotit >= 0)