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

Re: Linux and UTF8 filenames



Followup to:  <200209181920.g8IJKUX10066@xxxxxxxxxxxxxxxxxxxx>
By author:    Bruno Haible <bhaible@xxxxxx>
In newsgroup: linux.utf8
>
> Martin Kochanski writes:
> 
> > how can a poor innocent server discover enough about the
> > context in which it is running to know what filename it has to
> > use so that a
> > user who lists a file directory will see "Rêve" on his screen?
> 
> Since it depends on the user's locale, you'll have to convert the
> filename from the given encoding to the user's locale encoding.
> Start out with...
> 

Either that, or just say fsck it and tell the user to use an UTF-8
locale.  That also means you can use every Unicode character except
null (\0) and slash (/).

	-hpa
-- 
<hpa@xxxxxxxxxxxxx> at work, <hpa@xxxxxxxxx> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@xxxxxxxxx>
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/