Thread: Collation with different glibc versions

Collation with different glibc versions

From
Nick Gazaloff
Date:
> $ echo -e 'bobbill\nbobrob\nbob bill\nbob robber' | LC_ALL=en_US sort
> bobbill
> bob bill    -\
> bobrob       |-- Seems these ought to be adjacent?
> bob robber  -/


On Linux with glibc 2.2.5, I get the same result. But with glibc 2.3.1:


$ echo -e 'bobbill\nbobrob\nbob bill\nbob robber' | LC_ALL=en_US sort
bob bill
bob robber
bobbill
bobrob


--

Best regards,
Nick
(GPG Key ID: 4396B2D0, fingerprint: 648E C3FE ACF6 A730 FF52  D717 776D 1CB0 4396 B2D0)



Collation with different glibc versions, part 2

From
Nick Gazaloff
Date:
>
> > $ echo -e 'bobbill\nbobrob\nbob bill\nbob robber' | LC_ALL=en_US sort
> > bobbill
> > bob bill    -\
> > bobrob       |-- Seems these ought to be adjacent?
> > bob robber  -/
>
>
> On Linux with glibc 2.2.5, I get the same result. But with glibc 2.3.1:
>
>
> $ echo -e 'bobbill\nbobrob\nbob bill\nbob robber' | LC_ALL=en_US sort
> bob bill
> bob robber
> bobbill
> bobrob
>
>
>


Sorry, it was a mistake. localedef had not been run for en_US. After that,
the sort looks the same for all versions of glibc.

--

Best regards,
Nick
(GPG Key ID: 4396B2D0, fingerprint: 648E C3FE ACF6 A730 FF52  D717 776D 1CB0 4396 B2D0)