[Top][All Lists]

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

Re: plists in UTF8

From: David Ayers
Subject: Re: plists in UTF8
Date: Wed, 14 Jun 2006 16:50:29 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20060423)

Pete French schrieb:
>>... but property lists are commonly parsed from NSString objects  
>>loaded from file.
> [snip]
> Ah, yes, thats true. hadn't thought of that.
>>which says it should look for BOMs and, in their absence, use the  
>>default encoding for the locale.
> The latter looks like a bit of an odd choice to me, as I always took
> the locale to be describing the character set the OS is using. So

Note that "the character set the OS is using" suggests a misleading
concept.  Neither the OS nor most file systems have a locale associated
with them.  A process has a locale.  Two processes with differing
locales will see a file name of the same file rendered with their
current locale (i.e. they may see different glyphs).  Of course the OS
generally does supply a mechanism to set the "default locale" (i.e.
inheriting the LANG/LC_* environment variables on POSIX systems).

-bash-3.00$ echo $LANG
-bash-3.00$ touch fileā‚¬
-bash-3.00$ export LANG=de_DE
-bash-3.00$ ls file*


reply via email to

[Prev in Thread] Current Thread [Next in Thread]