Re: Locales and filenames

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



On Oct 27, 2009, at 13:40, Niki Kovacs wrote:

I vaguely remember Mac uses UTF-16 as default encoding. This could be
the source of your problem.

Forget I said anything about the Mac; I'm only using it to write these emails. The file in question was completely created on Linux. The filename contains the character 0xE7 (c with cedilla) and the file itself contains the character 0xED (i acute). Neither character is displayed correctly using ls (filename) or cat (content), but I can look at the file with vim. Here is some output cut&pasted from my xterm window to illustrate the issue:

bash-3.2$ ls -l XXX*
-rw-r--r-- 1 av16209 GRP-HEPDSW 22 oct 27 14:11 XXX?
bash-3.2$ cat test.sh
#!/bin/sh
echo "This is an i acute: � > XXX�
                                  bash-3.2$

I have also attached a gzip'ed test.sh.

Alfred


Attachment: test.sh.gz
Description: GNU Zip compressed data

_______________________________________________
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