Re: ls is broken for non-C locales due to libxo

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Tue, 16 Jun 2015 21:28:35 -0700
> On Jun 16, 2015, at 8:46 PM, Andrey Chernov <ache_at_FreeBSD.org> wrote:
> 
> Signed PGP part
> On 17.06.2015 6:23, Marcel Moolenaar wrote:
> > Date/time is fixed. I don?t know how to reproduce the filename
> > problem, so make sure sources are up-to-date and if still a
> > problem, provide me with a way to reproduce.
> 
> touch `printf "\377"`
> env LANG=ru_RU.KOI8-R ls -l | od -bc | grep 377

fbsdvm64% touch `printf "\377”`
fbsdvm64% ls -l | head -2
total 96
-rw-r--r--  1 marcel  staff      0 Jun 16 21:25 %FF

fbsdvm64% env LANG=ru_RU.KOI8-R ls -l | head -2
total 96
-rw-r--r--  1 marcel  staff      0 16 ??? 21:25 %FF

So, what’s wrong?

--
Marcel Moolenaar
marcel_at_xcllnt.net


Received on Wed Jun 17 2015 - 02:28:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC