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?


Today at 11:34, Ole Laursen wrote:

> But you could split filenames into basenames and extension, and sort
> the basenames separately using dictionary order, couldn't you?

No.  Unless you define an algorithm for determining "basename" that
always works:

sample.gz
sample.tar.gz
sample.tar.gz.bz2
simple.sample.tar.gz
something-2.15.tar.gz
...

"Filename extension" is not a Unix concept.

> The dot already has a special meaning when it is the first character
> in the filename.

Yes, and it's easy to determine (a filename either begins with a dot
or it doesn't).  Dots all around filenames are ambiguos. 

Cheers,
Danilo


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