diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-08-25 18:55:46 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-08-25 18:55:46 +0300 |
commit | 015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b (patch) | |
tree | 0242e9b0aa25996e40802ee33aa6929efc3effae /src/w32.h | |
parent | 8661ebaa6c0ef3f9517c5288855657b274c723d6 (diff) | |
download | emacs-015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b.tar.gz |
Implement locale-sensitive string collation for MS-Windows. (Bug#18051)
src/w32proc.c (get_lcid_callback, get_lcid, w32_compare_strings):
New functions.
src/w32.h (w32_compare_strings): Add prototype.
src/w32.c <g_b_init_compare_string_w>: New global flag.
(globals_of_w32): Initialize it.
src/sysdep.c (str_collate) [WINDOWSNT]: Implementation for MS-Windows.
src/fns.c (Fstring_collate_lessp, Fstring_collate_equalp)
[WINDOWSNT]: Call str_collate on MS-Windows.
etc/NEWS: Mention that string-collate-* functions are supported on
MS-Windows as well.
Diffstat (limited to 'src/w32.h')
-rw-r--r-- | src/w32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/w32.h b/src/w32.h index 94f7a962833..68ee14c70e3 100644 --- a/src/w32.h +++ b/src/w32.h @@ -210,6 +210,9 @@ extern int sys_link (const char *, const char *); extern int w32_memory_info (unsigned long long *, unsigned long long *, unsigned long long *, unsigned long long *); +/* Compare 2 UTF-8 strings in locale-dependent fashion. */ +extern int w32_compare_strings (const char *, const char *, char *); + #ifdef HAVE_GNUTLS #include <gnutls/gnutls.h> |