aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii2014-08-25 18:55:46 +0300
committerEli Zaretskii2014-08-25 18:55:46 +0300
commit015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b (patch)
tree0242e9b0aa25996e40802ee33aa6929efc3effae /src/w32.c
parent8661ebaa6c0ef3f9517c5288855657b274c723d6 (diff)
downloademacs-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.c')
-rw-r--r--src/w32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index 7cb9d8960c5..25549d79d7f 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -309,6 +309,8 @@ static BOOL g_b_init_set_named_security_info_w;
309static BOOL g_b_init_set_named_security_info_a; 309static BOOL g_b_init_set_named_security_info_a;
310static BOOL g_b_init_get_adapters_info; 310static BOOL g_b_init_get_adapters_info;
311 311
312BOOL g_b_init_compare_string_w;
313
312/* 314/*
313 BEGIN: Wrapper functions around OpenProcessToken 315 BEGIN: Wrapper functions around OpenProcessToken
314 and other functions in advapi32.dll that are only 316 and other functions in advapi32.dll that are only
@@ -9068,6 +9070,7 @@ globals_of_w32 (void)
9068 g_b_init_set_named_security_info_w = 0; 9070 g_b_init_set_named_security_info_w = 0;
9069 g_b_init_set_named_security_info_a = 0; 9071 g_b_init_set_named_security_info_a = 0;
9070 g_b_init_get_adapters_info = 0; 9072 g_b_init_get_adapters_info = 0;
9073 g_b_init_compare_string_w = 0;
9071 num_of_processors = 0; 9074 num_of_processors = 0;
9072 /* The following sets a handler for shutdown notifications for 9075 /* The following sets a handler for shutdown notifications for
9073 console apps. This actually applies to Emacs in both console and 9076 console apps. This actually applies to Emacs in both console and