This is the mail archive of the libc-locales@sourceware.org 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]

[Bug locale/18589] sort-test.sh fails at random


https://sourceware.org/bugzilla/show_bug.cgi?id=18589

--- Comment #5 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Egmont Koblinger from comment #4)
> Thanks Carlos!
> 
> I wanted to investigate a bit but didn't have time, so sorry if I make wrong
> assumptions:
> 
> Does this bug result in strcoll(a, b) returning different result than
> [pseudocode] strcmp(strxfrm(a), strxfrm(b))?
> 
> I would have guessed the former is just a thin wrapper performing the
> latter; apparently it has its standalone implementation for performance
> reasons which is error prone to let the two go out of sync, am I right?
> 
> Wouldn't it make sense to extend the unittests to sort the files with both
> comparison approaches? (Although that'd still not give full protection
> against weird undiscovered corner cases where the two methods produce
> different results.)

My current analysis is that the fast-forward is wrong because it should not
fast forward into the middle of a digraph since that results in incorrect
sorting. I'm not sure why Leonhard didn't notice this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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