diff options
| author | Eli Zaretskii | 2014-08-25 18:55:46 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-08-25 18:55:46 +0300 |
| commit | 015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b (patch) | |
| tree | 0242e9b0aa25996e40802ee33aa6929efc3effae /src/w32.h | |
| parent | 8661ebaa6c0ef3f9517c5288855657b274c723d6 (diff) | |
| download | emacs-015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b.tar.gz emacs-015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b.zip | |
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
| @@ -210,6 +210,9 @@ extern int sys_link (const char *, const char *); | |||
| 210 | extern int w32_memory_info (unsigned long long *, unsigned long long *, | 210 | extern int w32_memory_info (unsigned long long *, unsigned long long *, |
| 211 | unsigned long long *, unsigned long long *); | 211 | unsigned long long *, unsigned long long *); |
| 212 | 212 | ||
| 213 | /* Compare 2 UTF-8 strings in locale-dependent fashion. */ | ||
| 214 | extern int w32_compare_strings (const char *, const char *, char *); | ||
| 215 | |||
| 213 | #ifdef HAVE_GNUTLS | 216 | #ifdef HAVE_GNUTLS |
| 214 | #include <gnutls/gnutls.h> | 217 | #include <gnutls/gnutls.h> |
| 215 | 218 | ||