Re: [CentOS] Locales and filenames

2009-10-28 Thread Alfred von Campe
On Oct 28, 2009, at 2:59, Mogens Kjaer wrote: > If your locale is UTF8, íéèæøå would be multibyte characters. > > If your characters are one byte only, they are not UTF-8. That was the key: the file was not UTF-8. > vim knows how to handle this correctly: Yes, it apparently does. It almost app

Re: [CentOS] Locales and filenames

2009-10-28 Thread Alfred von Campe
On Oct 27, 2009, at 19:28, ken wrote: > E.g., create a file with vi with just one German/Greek/French word, > say, > Έντελέχεια (Entylecheia, an ancient Greek word). If the > name of the > file is "nonenglish", then, after you do your save in vim, run the > shell > commands > > touch temp;

Re: [CentOS] Locales and filenames

2009-10-27 Thread Mogens Kjaer
On 10/27/2009 07:16 PM, Alfred von Campe wrote: > 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

Re: [CentOS] Locales and filenames

2009-10-27 Thread ken
On 10/27/2009 02:16 PM Alfred von Campe wrote: > 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

Re: [CentOS] Locales and filenames

2009-10-27 Thread Alfred von Campe
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 filenam

Re: [CentOS] Locales and filenames

2009-10-27 Thread Niki Kovacs
Alfred von Campe a écrit : > > To be honest, I don't even know how to create those characters on the > command line on Linux (I am writing this on a Mac where I know how to > generate characters using the option key). I vaguely remember Mac uses UTF-16 as default encoding. This could be t

Re: [CentOS] Locales and filenames

2009-10-27 Thread Alfred von Campe
On Oct 27, 2009, at 10:51, Niki Kovacs wrote: > [kikino...@babasse:~] $ touch "Fichier encodé en français" > [kikino...@babasse:~] $ touch "Wie heißt diese Datei denn bloß äh" > [kikino...@babasse:~] $ ls F* W* > Fichier encodé en français Wie heißt diese Datei denn bloß äh To be honest, I don't

Re: [CentOS] Locales and filenames

2009-10-27 Thread Niki Kovacs
Alfred von Campe a écrit : > On Oct 27, 2009, at 9:45, Niki Kovacs wrote: > >> The 'file' command displays encoding information. If you have to >> change >> the encoding, use 'recode'. Example : > > Thanks for the quick response, Niki, but I don't need to change the > encoding (at least I don

Re: [CentOS] Locales and filenames

2009-10-27 Thread Alfred von Campe
On Oct 27, 2009, at 9:45, Niki Kovacs wrote: > The 'file' command displays encoding information. If you have to > change > the encoding, use 'recode'. Example : Thanks for the quick response, Niki, but I don't need to change the encoding (at least I don't think I do). I just want ls to show

Re: [CentOS] Locales and filenames

2009-10-27 Thread Niki Kovacs
Alfred von Campe a écrit : > I have a file which contains non-ASCII characters (umlauts, accented > characters, etc.) both in its filename as well as its content. The > only way I have been able to see these characters is inside vim, > where they are displayed correctly no matter what I have