locale on fedora for ISO-8859-1?

Loic Domaigne loic-dev at gmx.net
Wed Jun 27 20:25:29 UTC 2007


Hello everybody!

I have a simple question regarding locale on Fedora core >= 5.

I have a EXT2 filesystem with filenames encoded using ISO-8859-1:

$ ls -b mnt/
[loic at neumann ~]$ ls -b mnt/
A\304O\326\334\334.txt  try_\344\366\374.txt

[loic at neumann ~]$ ls mnt/ | iconv -f ISO_8859-1
AÄOÖÜÜ.txt
try_äöü.txt

How should I set the locale so that the filenames are displayed correctly
(i.e. using ISO-8859-1 encoding)? With that appropriate setting, I'd like that 
the "ls mnt/" command shows:
AÄOÖÜÜ.txt
try_äöü.txt

My current locale are:
[loic at neumann ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Thanks for your help,
Loïc.

-- 
--
// Sender address goes to /dev/null (!!) 
// Use my 32/64 bits, ANSI C89, compliant email-address instead:   

unsigned y[]=
{0,34432,26811,16721,41866,63119,61007,48155,26147,10986};
void x(z){putchar(z);}; unsigned t; 
main(i){if(i<10){t=(y[i]*47560)%65521;x(t>>8);x(t&255);main(++i);}}

Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger




More information about the fedora-list mailing list