[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Any comments on this bug? (The same letter is not considered as the same letter)
From:       Thiago Macieira <thiago () kde ! org>
Date:       2013-05-23 1:23:56
Message-ID: 4112042.rfFKnImMxV () tjmaciei-mobl2
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On quarta-feira, 22 de maio de 2013 18.23.11, Parker Coates wrote:
> On Wed, May 22, 2013 at 5:08 PM, Thiago Macieira wrote:
> > On quarta-feira, 22 de maio de 2013 13.39.20, Aaron J. Seigo wrote:
> >> On Wednesday, May 22, 2013 13:05:04 Volkan Gezer wrote:
> >> > https://bugs.kde.org/show_bug.cgi?id=316077
> >> 
> >> this would best be handled in Qt's string comparison code so that it gets
> >> fixed everywhere. reporting it to Qt's bug tracker may be the best
> >> option.
> > 
> > QString's comparison is locale-unaware. If you need locale-aware
> > comparisons, you need to use either QCollator (Qt 5.1) or
> > QString::localeAwareCompare.
> > 
> > This needs to be done in each application.
> 
> Maybe I'm missing something, but I don't see how QCollator or
> QString::localeAwareCompare() would allow one to do locale-aware,
> case-insensitive substring or regex searches.

You don't. You need to do it manually.

Maybe we can add the feature to QRegularExpression to do locale-aware 
searches. Peppe, does PCRE support that?

Example: can you use "i" as a pattern and match "İ" but not "I" ?
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic