[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117799: src/w32proc.c (w32_compare_strings): Suppor
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r117799: src/w32proc.c (w32_compare_strings): Support "C" and "POSIX" locales. |
Date: |
Mon, 01 Sep 2014 15:07:29 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117799
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Mon 2014-09-01 18:07:17 +0300
message:
src/w32proc.c (w32_compare_strings): Support "C" and "POSIX" locales.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/w32proc.c w32proc.c-20091113204419-o5vbwnq5f7feedwu-814
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-09-01 09:54:12 +0000
+++ b/src/ChangeLog 2014-09-01 15:07:17 +0000
@@ -1,3 +1,8 @@
+2014-09-01 Eli Zaretskii <address@hidden>
+
+ * w32proc.c (w32_compare_strings): Support "C" and "POSIX"
+ locales.
+
2014-09-01 Paul Eggert <address@hidden>
--enable-silent-rules now suppresses more chatter.
=== modified file 'src/w32proc.c'
--- a/src/w32proc.c 2014-08-30 08:19:24 +0000
+++ b/src/w32proc.c 2014-09-01 15:07:17 +0000
@@ -3236,6 +3236,13 @@
USE_SAFE_ALLOCA;
+ /* The LCID machinery doesn't seem to support the "C" locale, so we
+ need to do that by hand. */
+ if (locname
+ && ((locname[0] == 'C' && (locname[1] == '\0' || locname[1] == '.'))
+ || strcmp (locname, "POSIX") == 0))
+ return (ignore_case ? stricmp (s1, s2) : strcmp (s1, s2));
+
if (!g_b_init_compare_string_w)
{
if (os_subtype == OS_9X)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117799: src/w32proc.c (w32_compare_strings): Support "C" and "POSIX" locales.,
Eli Zaretskii <=