aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2014-08-29 22:18:06 +0300
committerEli Zaretskii2014-08-29 22:18:06 +0300
commit21ba51de76390907ca86b1e7715f472dd740fbc3 (patch)
tree0b3418f0563a5da979cacf6894120840b56b8456 /etc
parent2ae366c73e27dc695b6bc1cd03d93f48b3db76d4 (diff)
downloademacs-21ba51de76390907ca86b1e7715f472dd740fbc3.tar.gz
emacs-21ba51de76390907ca86b1e7715f472dd740fbc3.zip
Implement case-insensitive and Unicode-compliant collation on MS-Windows.
src/fns.c (Fstring_collate_lessp, Fstring_collate_equalp): Doc fix. src/w32proc.c (w32_compare_strings): Accept additional argument IGNORE_CASE. Set up the flags for CompareStringW to ignore case if requested. If w32-collate-ignore-punctuation is non-nil, add NORM_IGNORESYMBOLS to the flags. (LINGUISTIC_IGNORECASE): Define if not already defined. (syms_of_ntproc) <Vw32_collate_ignore_punctuation>: New variable. src/sysdep.c (str_collate) [WINDOWSNT]: Adapt to the interface change. src/w32.h: Adjust prototype of w32_compare_strings. etc/NEWS: Mention w32-collate-ignore-punctuation. Fixes: debbugs:18051
Diffstat (limited to 'etc')
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS7
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 4968d8d7203..edec0dd2c13 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12014-08-29 Eli Zaretskii <eliz@gnu.org>
2
3 * NEWS: Mention w32-collate-ignore-punctuation.
4
12014-08-29 Dmitry Antipov <dmantipov@yandex.ru> 52014-08-29 Dmitry Antipov <dmantipov@yandex.ru>
2 6
3 * NEWS: Mention that `sort' can handle vectors. 7 * NEWS: Mention that `sort' can handle vectors.
diff --git a/etc/NEWS b/etc/NEWS
index 47ad2b91ebd..c82f2b976ff 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -72,6 +72,13 @@ environment. For the time being this is implemented for modern POSIX
72systems and for MS-Windows, for other systems they fall back to their 72systems and for MS-Windows, for other systems they fall back to their
73counterparts `string-lessp' and `string-equal'. 73counterparts `string-lessp' and `string-equal'.
74 74
75*** The MS-Windows specific variable `w32-collate-ignore-punctuation',
76if set to a non-nil value, causes the above 2 functions to ignore
77symbol and punctuation characters when collating strings. This
78emulates the behavior of modern Posix platforms when the locale's
79codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because
80MS-Windows doesn't support UTF-8 as codeset in its locales.
81
75 82
76* Editing Changes in Emacs 24.5 83* Editing Changes in Emacs 24.5
77 84