GNU bug report logs -
#18051
24.3.92; ls-lisp: Sorting; make ls-lisp-string-lessp a normal function?
Previous Next
Reported by: michael_heerdegen <at> web.de
Date: Fri, 18 Jul 2014 06:24:01 UTC
Severity: wishlist
Found in version 24.3.92
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Sun, 17 Aug 2014 19:38:36 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: michael_heerdegen <at> web.de, 18051 <at> debbugs.gnu.org
>
> > From: Michael Albinus <michael.albinus <at> gmx.de>
> > Cc: michael_heerdegen <at> web.de, 18051 <at> debbugs.gnu.org
> > Date: Sat, 16 Aug 2014 23:52:16 +0200
> >
> > Just being curious, I've taken g_utf8_collate from the glib for a
> > test. It doesn't work bad.
>
> Are you sure this is implemented in Glib, not in the underlying libc
> (glibc in your case, I presume)?
Answering myself here: by reading the source of g_utf8_collate, it is
clear that the implementation is elsewhere. In particular, in any
environment that defines __STDC_ISO_10646__ (as does glibc),
g_utf8_collate simply calls wcscoll, after converting the UTF-8
strings to wide-character strings.
So I think a better alternative would be to base the implementation of
this feature on the system libraries directly. I think most modern
platforms have the necessary facilities.
This bug report was last modified 10 years and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.