On Sun, Oct 07, 2018 at 10:06:35AM +0200, Stefan Sperling wrote:
> 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.
thinking about it better I ran locate.updatedb from my user (LC_ALL set in 
.profile) to
be able to have a locate database asap after new install.
Adding a note in locate.updatedb(8) maybe ?
 Cheers
  Giovanni

Attachment: signature.asc
Description: PGP signature



Reply via email to