aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2014-08-25 18:55:46 +0300
committerEli Zaretskii2014-08-25 18:55:46 +0300
commit015ea0ffdb4f446e3bd263fe5e42b35aafdf1e5b (patch)
tree0242e9b0aa25996e40802ee33aa6929efc3effae /etc
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 'etc')
-rw-r--r--etc/ChangeLog5
-rw-r--r--etc/NEWS6
2 files changed, 8 insertions, 3 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 40eb5f11252..72c8334d3df 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,8 @@
12014-08-25 Eli Zaretskii <eliz@gnu.org>
2
3 * NEWS: Mention that string-collate-* functions are supported on
4 MS-Windows as well.
5
12014-08-08 Jan Nieuwenhuizen <janneke@gnu.org> 62014-08-08 Jan Nieuwenhuizen <janneke@gnu.org>
2 7
3 * compilation.txt (file): Add Guile backtrace example. 8 * compilation.txt (file): Add Guile backtrace example.
diff --git a/etc/NEWS b/etc/NEWS
index 58a749a79b4..afdaf1a2a3d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -68,9 +68,9 @@ variable `read-hide-char'.
68 68
69** The new functions `string-collate-lessp' and `string-collate-equalp' 69** The new functions `string-collate-lessp' and `string-collate-equalp'
70preserve the collation order as defined by the system's locale(1) 70preserve the collation order as defined by the system's locale(1)
71environment. For the time being this is implemented for POSIX systems 71environment. For the time being this is implemented for modern POSIX
72only, for other systems they fall back to their counterparts 72systems and for MS-Windows, for other systems they fall back to their
73`string-lessp' and `string-equal'. 73counterparts `string-lessp' and `string-equal'.
74 74
75 75
76* Editing Changes in Emacs 24.5 76* Editing Changes in Emacs 24.5