all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: eggert@cs.ucla.edu, dmantipov@yandex.ru, 18051@debbugs.gnu.org
Subject: bug#18051: [Emacs-diffs] trunk r117726: Add string collation.
Date: Fri, 29 Aug 2014 22:31:49 +0300	[thread overview]
Message-ID: <838um7hz2y.fsf@gnu.org> (raw)
In-Reply-To: <87mwanqinl.fsf@gmx.de>

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: martin rudalics <rudalics@gmx.at>,  eggert@cs.ucla.edu,  dmantipov@yandex.ru,  18051@debbugs.gnu.org
> Date: Fri, 29 Aug 2014 20:01:50 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Case-insensitive versions of the new functions are yet to be written;
> > stay tuned.
> 
> I've just committed a patch to the trunk which adds optional arguments
> LOCALE and IGNORE-CASE to the collation functions.

Thanks.

> > For now, on MS-Windows, you can have that if you use the
> > NORM_IGNORECASE flag as the second argument of CompareStringW inside
> > w32_compare_strings.
> 
> As usual, this I haven't implemented. I would let it to you, Eli.

As usual, done.

I needed to introduce a w32-specific variable, which needs to be bound
to a non-nil value in order to have UTS#10 (a.k.a. "Unicode Collation
Algorithm", or "UCA") compliant collation order, which ignores
punctuation differences, on MS-Windows.  This is because Windows
doesn't support UTF-8 as a codeset in its locales (and Windows locales
have different names anyway).  This means that if a Lisp program needs
to make sure it gets a UCA-compliant collation order on all platforms,
it will have to pass a "xx_YY.UTF-8" locale on Posix platforms, and on
Windows bind that w32-specific variable to a non-nil value.

Btw, I think we will need a lot of verbiage in the ELisp manual to
make sure people understand what to expect from these functions.  In
particular, the results are extremely locale- and platform-specific,
so one cannot expect exactly the same results in all cases, only
something similar.





  reply	other threads:[~2014-08-29 19:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25  4:05 [Emacs-diffs] trunk r117726: Add string collation Dmitry Antipov
2014-08-25  5:48 ` bug#18051: " Paul Eggert
2014-08-25  6:19   ` Dmitry Antipov
2014-08-25  6:41     ` Michael Albinus
2014-08-25 15:03       ` Eli Zaretskii
2014-08-25 16:01         ` Eli Zaretskii
2014-08-27 11:24         ` Michael Albinus
2014-08-27 15:40           ` Eli Zaretskii
2014-08-27 18:12             ` Michael Albinus
2014-08-27 18:26               ` Eli Zaretskii
2014-08-27 19:00           ` Paul Eggert
2014-08-27 19:08             ` Paul Eggert
2014-08-27 19:54               ` Eli Zaretskii
2014-08-27 21:27                 ` Paul Eggert
2014-08-27 21:37                   ` Michael Albinus
2014-08-28  2:39                     ` Eli Zaretskii
2014-08-29  8:59                     ` martin rudalics
2014-08-29  9:59                       ` Michael Albinus
2014-08-29 17:21                         ` martin rudalics
2014-08-29 17:56                           ` Michael Albinus
2014-08-29 10:06                       ` Eli Zaretskii
2014-08-29 18:01                         ` Michael Albinus
2014-08-29 19:31                           ` Eli Zaretskii [this message]
2014-08-29 21:01                             ` Michael Albinus
2014-09-01 15:20                               ` Eli Zaretskii
2014-09-01 20:46                                 ` Michael Heerdegen
2014-10-17 20:26                                   ` Michael Heerdegen
2014-10-18  5:38                                     ` Eli Zaretskii
2014-10-18 14:27                                       ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838um7hz2y.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=18051@debbugs.gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=eggert@cs.ucla.edu \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.