From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Collation tests in fns-tests.el Date: Fri, 30 Oct 2015 22:40:08 +0200 Message-ID: <83fv0sytsn.fsf@gnu.org> References: <5633AE31.2030501@cornell.edu> <83mvv0yucm.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446237655 9260 80.91.229.3 (30 Oct 2015 20:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 20:40:55 +0000 (UTC) Cc: michael.albinus@gmx.de, kbrown@cornell.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 30 21:40:46 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZsGTc-0000Nc-R6 for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2015 21:40:44 +0100 Original-Received: from localhost ([::1]:52980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsGTc-0002eT-Dy for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2015 16:40:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsGTW-0002eG-2i for emacs-devel@gnu.org; Fri, 30 Oct 2015 16:40:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsGTV-0002fj-2z for emacs-devel@gnu.org; Fri, 30 Oct 2015 16:40:37 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:51227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsGTP-0002dO-Ow; Fri, 30 Oct 2015 16:40:32 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NX100J00VEZIX00@mtaout27.012.net.il>; Fri, 30 Oct 2015 22:35:36 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX1009NTVVBN3A0@mtaout27.012.net.il>; Fri, 30 Oct 2015 22:35:36 +0200 (IST) In-reply-to: <83mvv0yucm.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192986 Archived-At: > Date: Fri, 30 Oct 2015 22:28:09 +0200 > From: Eli Zaretskii > Cc: michael.albinus@gmx.de, emacs-devel@gnu.org > > > From: Ken Brown > > Date: Fri, 30 Oct 2015 13:51:45 -0400 > > Cc: Emacs > > > > 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.