ls is broken for non-C locales due to libxo
Marcel Moolenaar
marcel at xcllnt.net
Wed Jun 17 16:55:06 UTC 2015
> On Jun 17, 2015, at 9:35 AM, Andrey Chernov <ache at FreeBSD.org> wrote:
>
> Signed PGP part
> On 17.06.2015 16:58, Marcel Moolenaar wrote:
> >
> >> On Jun 16, 2015, at 9:53 PM, Andrey Chernov <ache at FreeBSD.org>
> >> wrote:
> >
> >> Should be no any %FF, but single char in pre libxo ls or nothing
> >> in post libxo one.
> >>
> >> Use LANG=ru_RU.KOI8-R before touch command. It looks like you
> >> create file with name "%FF" instead.
> >
> > No difference:
> >
> > fbsdvm64% env LANG=ru_RU.KOI8-R touch `env LANG=ru_RU.KOI8-R printf
> > "\377"` fbsdvm64% ls -al total 8 -rw-r--r-- 1 marcel staff 0
> > Jun 17 06:56 %FF drwxr-xr-x 3 marcel staff 102 Jun 17 06:56 .
> > drwxr-xr-x 12 marcel staff 408 Jun 17 06:55 ..
>
> The original bug was fixed in r284494 by kan@
>
> In any case, what you demonstrates is very strange and can be display
> (console,xterm,etc.) bug or probably libxio bug, because ls alone
> _never_ use %xx encoding, it should print '?' for invalid character or
> just character itself for valid ones.
Good point. I’ll try various things (esp. compare against 10).
--
Marcel Moolenaar
marcel at xcllnt.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150617/a740ef3c/attachment.sig>
More information about the freebsd-current
mailing list