/bin/ls incorrectly displays names of files on UTF-8 locales

Alex Deiter tiamat at komi.mts.ru
Thu Nov 20 10:47:37 PST 2003


/bin/ls incorrectly displays names of files on UTF-8 locales
(ports/misc/utf8locale):

$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_ALL=ru_RU.UTF-8

$ touch проба
$ ls -l проба
-rw-r--r--  1 test  test  0 19 ноя 15:17 п▒?оба

However ls | cat (ls|less, ls|sort, etc) works correctly:

$ ls -l проба | cat
-rw-r--r--  1 test  test  0 19 ноя 15:17 проба

Why ?

All other programs from /bin and /sbin work correctly.

Thanks!




More information about the freebsd-i18n mailing list