This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 #4 from Egmont Koblinger <egmont at gmail dot com> ---
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.)

-- 
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]