ls is broken for non-C locales due to libxo

Andrey Chernov ache at freebsd.org
Wed Jun 17 04:53:08 UTC 2015


Marcel Moolenaar <marcel at xcllnt.net> пишет:
>
>
>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

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 875 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150617/5572a53d/attachment.sig>


More information about the freebsd-current mailing list