On Sun, Oct 07, 2018 at 09:43:05AM +0200, Giovanni Bechis wrote: > Hi, > after setting LC_ALL=en_US.UTF-8 on my env locate.mklocatedb seems broken, > resetting LC_ALL=C is a workaround. > > $ export LC_ALL=en_US.UTF-8 > $ doas /usr/libexec/locate.updatedb > sort: Illegal byte sequence > locate.mklocatedb: cannot build locate database > $ export LC_ALL=C > $ doas /usr/libexec/locate.updatedb > > Should we run weekly(8) with LC_ALL=C to be sure that locate.updatedb runs > correctly ? > > Cheers > Giovanni
Fixing locate.mklocatedb looks much better. Specifically, the only part that cares about locale is sort, and it's definitely correct in fixing it's not run on an utf-8 file.