This is the mail archive of the libc-locales@sources.redhat.com mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Collating bug with period?


Yesterday at 13:44, Ole Laursen wrote:

> Ole Laursen <olau@cs.aau.dk> writes:
>
>> Yeah, it is merely a convention. I think if you split at the first
>> dot, you will get a good approximation that also mimics would you get
>> with the C locale. It does not catch "sample.ramble.tar.gz", but such
>> constructions are rare.
>
> I accidentally hit C-c C-c before writing "hopefully rare". The idea
> is that it won't work if you actively work against system, but as long
> you obey a "the first dot signifies the extension" rule, it would work
> fine, just as it does in the C locale.

But you don't have to "actively work against the system".  Files with
version numbers (look at eg. /usr/bin/python-2.4, emacs-21.3,...) and
tarballs such as something.tar.gz are very common.  It doesn't work
that way, and this approximation is very bad.  You certainly want a
new collation table.

FWIW, I think you should simply use C for LC_COLLATE.

Cheers,
Danilo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]