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?


Danilo Segan <dsegan@gmx.net> writes:

> Today at 11:32, Ole Laursen wrote:
> 
> > Really weird. I'll report a bug in GTK+ (for the file selector) and in
> > GNU coreutils.
> 
> I think you should not report these as bugs on these components:

Too late. :-)

The GTK+ report is here

  http://bugzilla.gnome.org/show_bug.cgi?id=172690

> instead, either set LC_COLLATE=C or POSIX for yourself

But this does not solve the problem for others. Also, I would want æøå
sorted correctly.

> or file a bug on your locale instead (though that's probably what
> should stay that way).

The Danish locale is apparently dictated by a standard. But why do you
think this is a locale bug? I would expect the locale to support
dictionary-like sorting, not filename sorting.

> As for reference, there's a lot of discussion in Unicode Technical
> Report 10: Unicode Collation Algorithm, so perhaps that's a good
> starting point?

I looked at it. There are a lot of things in there. :-) But it says:

  Punctuation is variable. In some situations a punctuation is treated
  like a base character. In other situations, it should be ignored if
  there are any base, accent, or case differences.

I'm not sure whether it is referring to different applications or
different languages. However, it also says under "1.4 Customization":
 
  In practice, there are additional features of collation that people
  need control over, which are expressed in user-interfaces and
  eventually in APIs. Other customizations or user preferences include
  (but are not limited to) the following:

  [...]

  Another common option is whether to treat punctuation (including
  spaces) as base characters or treate them as a level 4 difference.

Doesn't this support the idea that an application may need a slighly
different sort order?

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/


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