Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4ef04117
Commit
4ef04117
authored
Sep 01, 2014
by
Eli Zaretskii
Browse files
src/w32proc.c (w32_compare_strings): Support "C" and "POSIX" locales.
parent
cd6f709c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/w32proc.c
src/w32proc.c
+7
-0
No files found.
src/ChangeLog
View file @
4ef04117
2014-09-01 Eli Zaretskii <eliz@gnu.org>
* w32proc.c (w32_compare_strings): Support "C" and "POSIX"
locales.
2014-09-01 Paul Eggert <eggert@cs.ucla.edu>
--enable-silent-rules now suppresses more chatter.
...
...
src/w32proc.c
View file @
4ef04117
...
...
@@ -3236,6 +3236,13 @@ w32_compare_strings (const char *s1, const char *s2, char *locname,
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment