ls : not UTF-8 compliant?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Sorry bugging you for this simple command.

ls command displays question marks for the local characters (ones not included in 8859-1 space) in filenames.

ie.
[root@server aa]# touch çarp
[root@server aa]# ls
??arp
[root@server aa]# ls -b                    #for octal escapes
\303\247arp
[root@server aa]#

However, ls|less, ls|more or vi <directory name> all display filename correctly. Also, the <tab> completes such filenames in the correct way. Even, logsave command for the ls output prints the right characters.

So, I assume the filesystem keeps the filenames in UTF-8 encoding, but somehow ls can not show them properly.

Any workaround or a replacement for ls? BTW The system is Centos 5.1 and locale shows the encoding as UTF-8.

Thank you.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux