[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Collation tests in fns-tests.el
From: |
Eli Zaretskii |
Subject: |
Re: Collation tests in fns-tests.el |
Date: |
Fri, 30 Oct 2015 22:40:08 +0200 |
> Date: Fri, 30 Oct 2015 22:28:09 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden, address@hidden
>
> > From: Ken Brown <address@hidden>
> > Date: Fri, 30 Oct 2015 13:51:45 -0400
> > Cc: Emacs <address@hidden>
> >
> > I'm curious why you put the following test in fns-tests.el:
> >
> > ;; Punctuation and whitespace characters are not taken into account
> > ;; for collation in other locales.
> > (should
> > (equal
> > (sort '("11" "12" "1 1" "1 2" "1.1" "1.2")
> > (lambda (a b)
> > (let ((w32-collate-ignore-punctuation t))
> > (string-collate-lessp
> > a b (if (eq system-type 'windows-nt) "enu_USA" "en_US.UTF-8")))))
> > '("11" "1 1" "1.1" "12" "1 2" "1.2")))
> >
> > This suggests that punctuation and whitespace should definitely not be
> > taken into account in non-POSIX locales.
>
> They were found to be ignored in all the cases we tested until now.
I should have added "in UTF-8 locales" here, sorry.
But since Cygwin nowadays behaves like a UTF-8 locale (AFAIK), this
doesn't change the conclusions regarding Cygwin behavior, I think.