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 ? 

Where did you set the LC_ALL variable? The UTF-8 locale should only be enabled
on a per-user basis (e.g. in ~/.profile), not for the entire system.
There are many programs in the base system which don't [yet] support UTF-8.

Reply via email to