diff options
| author | Eli Zaretskii | 2014-08-29 22:18:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-08-29 22:18:06 +0300 |
| commit | 21ba51de76390907ca86b1e7715f472dd740fbc3 (patch) | |
| tree | 0b3418f0563a5da979cacf6894120840b56b8456 /etc | |
| parent | 2ae366c73e27dc695b6bc1cd03d93f48b3db76d4 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 7 |
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 @@ | |||
| 1 | 2014-08-29 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * NEWS: Mention w32-collate-ignore-punctuation. | ||
| 4 | |||
| 1 | 2014-08-29 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2014-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. |
| @@ -72,6 +72,13 @@ environment. For the time being this is implemented for modern POSIX | |||
| 72 | systems and for MS-Windows, for other systems they fall back to their | 72 | systems and for MS-Windows, for other systems they fall back to their |
| 73 | counterparts `string-lessp' and `string-equal'. | 73 | counterparts `string-lessp' and `string-equal'. |
| 74 | 74 | ||
| 75 | *** The MS-Windows specific variable `w32-collate-ignore-punctuation', | ||
| 76 | if set to a non-nil value, causes the above 2 functions to ignore | ||
| 77 | symbol and punctuation characters when collating strings. This | ||
| 78 | emulates the behavior of modern Posix platforms when the locale's | ||
| 79 | codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because | ||
| 80 | MS-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 | ||