• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change Unix Locale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Change Unix Locale (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Mail: mailboxes in folders
  • Next by Date: Re: Droplets (TRACEROUTE)
  • Previous by thread: Re: Change Unix Locale
  • Next by thread: Re: Change Unix Locale
  • Index(es):
    • Date
    • Thread