bug#38627: uniq -c gets wrong count with non-ascii strings

2020-02-23 Thread Paul Eggert
On 2/23/20 11:43 AM, Pádraig Brady wrote: #include "hard-locale.h" #include "posixver.h" #include "stdio--.h" -#include "xmemcoll.h" Please also remove the '#include "hard-locale.h"' line. Thanks for fixing this.

bug#38627: uniq -c gets wrong count with non-ascii strings

2020-02-23 Thread Andreas Schwab
On Feb 23 2020, Pádraig Brady wrote: > On 17/12/2019 17:25, Roy Smith wrote: >> I stopped short of actually building uniq.c from source (bootstrap, >> prerequisites, ...), but looking at the code, it looks like the call chain >> is: >> >> different() >> xmemcoll() >> memcoll() >> strcoll() >>

bug#38627: uniq -c gets wrong count with non-ascii strings

2020-02-23 Thread Pádraig Brady
On 17/12/2019 17:25, Roy Smith wrote: I stopped short of actually building uniq.c from source (bootstrap, prerequisites, ...), but looking at the code, it looks like the call chain is: different() xmemcoll() memcoll() strcoll() so I tried a little test at the strcoll() level: #include