[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-recutils] Locale issues [was: Comparison operator on reals fail

From: John Darrington
Subject: Re: [bug-recutils] Locale issues [was: Comparison operator on reals fails]
Date: Tue, 14 Aug 2012 16:24:48 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Aug 14, 2012 at 05:23:54PM +0200, Jose E. Marchesi wrote:
                  * How does locale affect other things.  For example: 
                         - does LC_COLLATE change the sort order?
              No, because we are using strcmp to implement the lexicographic 
              used when sorting strings.  That function uses the integer 
              codes for the comparison.
         Is that the behaviour users want?
         I imagine that French users would expect an e-acute to appear near the 
         unaccented e and Germans would like their sharp-S to appear near the 
         normal S.  And presumably the Spanish like their N-with-squiggle to be
         near the naked N.  
     We could use strcoll instead, but then the sorting will depend on the

I guess that's the big question.  Is that what should happen?

In general, I would say Yes.   It would seem strange if ??pfel 
appears after Zuwachs, just because it's bit pattern happens to be 
numerically higher.  On the other hand problems can arise if a recfile is
written in a (say) iso-8859-1 locale and interpreted in a UTF8 locale.
But that would cause other problems too regardless of sorting.


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]