This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
[Bug locale/18589] sort-test.sh fails at random
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: libc-locales at sourceware dot org
- Date: Thu, 08 Oct 2015 17:26:55 +0000
- Subject: [Bug locale/18589] sort-test.sh fails at random
- Auto-submitted: auto-generated
- References: <bug-18589-716 at http dot sourceware dot org/bugzilla/>
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.