[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: readdir() on linux
Ok, does anybody know if the same applies to other unices (e.g.:
AIX/Solaris)?
I would like to understand how Linux compare to these commercial OS's.
Thank you,
marco
On Tue, 3 Dec 2002 Andries.Brouwer@xxxxxx wrote:
> From: marco <mmechelli@xxxxxxxxxx>
>
> On Tue, 3 Dec 2002, Edmund GRIMLEY EVANS wrote:
>
> > Assume it's a null-terminated octet string. It shouldn't be empty,
> > and it shouldn't contain (ASCII) '/'. You can't assume the string
> > is valid character data in any particular encoding.
>
> Thank you Edmund,
> So, that means that there is no way for me to understand the encoding
> unless I look at some mount options ... right?
>
> Wrong.
> There is no way to understand the encoding period.
>
> That is, there is no encoding. A filename is just a
> null-terminated octet string, like Edmund says.
> No character set involved.
> In the same filesystem some users may write French
> in ISO 8859-1, while others write Russian in KOI-8.
>
> The only source of information is the user.
> (And the environment variables she set.)
>
> Andries
>
>
> --
> Linux-UTF8: i18n of Linux on all levels
> Archive: http://mail.nl.linux.org/linux-utf8/
>
>
>
---------------------------------------------------
~
. .
/V\ Computers are like air conditioners.
// \\ They stop working when you open Windows.
/( )\
^`~'^
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/