aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Brown2015-11-02 11:22:51 -0500
committerKen Brown2015-11-02 11:22:51 -0500
commita9cdc4a23c9ba93095cb6595972cbe2fde450e2c (patch)
tree41b6f3cadecc73f2fc7e7299eb06b260d4f53abc
parent5401bb8645f955b6fde8c0a5e5c8cf5ec1cab626 (diff)
downloademacs-a9cdc4a23c9ba93095cb6595972cbe2fde450e2c.tar.gz
emacs-a9cdc4a23c9ba93095cb6595972cbe2fde450e2c.zip
Document behavior of collation on Cygwin
* test/automated/fns-tests.el (fns-tests-collate-sort): Mark as expected failure on Cygwin. * doc/lispref/strings.texi (Text Comparison): Document that punctuation and whitespace are not ignored for sorting on Cygwin.
-rw-r--r--doc/lispref/strings.texi7
-rw-r--r--test/automated/fns-tests.el2
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 143de82d9ad..f8685d9312c 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -584,8 +584,8 @@ determined by the lexicographic order of the characters contained in
584relations between these characters. Usually, it is defined by the 584relations between these characters. Usually, it is defined by the
585@var{locale} environment Emacs is running with. 585@var{locale} environment Emacs is running with.
586 586
587For example, punctuation and whitespace characters might be considered 587For example, punctuation and whitespace characters might be ignored
588less significant for @ref{Sorting,,sorting}. 588for sorting (@pxref{Sequence Functions}):
589 589
590@example 590@example
591@group 591@group
@@ -594,6 +594,9 @@ less significant for @ref{Sorting,,sorting}.
594@end group 594@end group
595@end example 595@end example
596 596
597This behavior is system-dependent; punctuation and whitespace are
598never ignored on Cygwin, regardless of locale.
599
597The optional argument @var{locale}, a string, overrides the setting of 600The optional argument @var{locale}, a string, overrides the setting of
598your current locale identifier for collation. The value is system 601your current locale identifier for collation. The value is system
599dependent; a @var{locale} @code{"en_US.UTF-8"} is applicable on POSIX 602dependent; a @var{locale} @code{"en_US.UTF-8"} is applicable on POSIX
diff --git a/test/automated/fns-tests.el b/test/automated/fns-tests.el
index 7e9c1f1058d..b5222db3ca1 100644
--- a/test/automated/fns-tests.el
+++ b/test/automated/fns-tests.el
@@ -155,6 +155,8 @@
155 (9 . "aaa") (9 . "zzz") (9 . "ppp") (9 . "fff")]))) 155 (9 . "aaa") (9 . "zzz") (9 . "ppp") (9 . "fff")])))
156 156
157(ert-deftest fns-tests-collate-sort () 157(ert-deftest fns-tests-collate-sort ()
158 ;; See https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02505.html.
159 :expected-result (if (eq system-type 'cygwin) :failed :passed)
158 (skip-unless (fns-tests--collate-enabled-p)) 160 (skip-unless (fns-tests--collate-enabled-p))
159 161
160 ;; Punctuation and whitespace characters are relevant for POSIX. 162 ;; Punctuation and whitespace characters are relevant for POSIX.