Re: Change Unix Locale
Re: Change Unix Locale
- Subject: Re: Change Unix Locale
- From: Andreas Limmer <email@hidden>
- Date: Mon, 7 Apr 2003 15:07:33 +0200
Am Montag, 07.04.03 um 12:45 Uhr schrieb John Delacour:
If I run
do shell script "cd;open -e .MacOSX/environment.plist"
I get this in TextEdit. What do you get?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LANG</key>
<string>en_GB</string>
<key>LC_ALL</key>
<string>C</string>
<key>PATH</key>
<string>/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin</string>
</dict>
</plist>
I get nearly the same, because I use this file to store some
environment settings which I don't set via csh.cshrc and csh.login. To
use the environment.plist is a quite cunning way to set some of the
locales for programs outside a terminal e.g. perl which sometimes
requires the LC_ALL = C to work correctly.
Btw the LC_ALL is simply a fallback if no LANG settings are present. By
using the plist a LC setting is present during login procedure and
availiable to all programs not only to those which parse the cshrc.The
basic problem that OS X does not handle the LC directives is not
addressed by the plist. It simply helps to avoid some symptoms
(compiling e.a.), but the date, time and currency conversions provided
by proper LC directives are still not there (missing since the beta
times sigh). So the system uses the generic settings, that is American
conventions.
Andreas
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.