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

From: Andrey Chernov <ache_at_freebsd.org>
Date: Wed, 17 Jun 2015 07:53:00 +0300
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.

Received on Wed Jun 17 2015 - 02:53:08 UTC

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