Cezary Sobaniec <address@hidden> writes:
> Question: why join sorts the lines in a different order when compared
> to sort with the same settings (field separator, LC_COLLATE)?
It shouldn't; the order should be the same, so long as you use the
same locale and -t option in both cases.
I can't reproduce the problem with coreutils 5.0
<ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz>
on Solaris 8 (sparc).
Can you please try vanilla 5.0? Perhaps there's something wrong
with the SuSE version of 4.5.8.
Another possibility is that your locale is messed up somehow.
What is the output of the "locale" command?
> $ cat F1
> a2 x
> $ cat F2
> a x
> a2 x
> $ join -k 1,1 F1 F2
> a2 x x
But coreutils 'join' doesn't have a -k option. This leads me to
wonder whether your problem has something to do with SuSE's changes to
'join'.