• 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: Words of Bug in Leopard (Japanese environment)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Words of Bug in Leopard (Japanese environment)


  • Subject: Re: Words of Bug in Leopard (Japanese environment)
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 7 Aug 2008 09:49:09 -0700

On Aug 6, 2008, at 3:49 PM, Philip Aker wrote:

On 2008-08-06, at 11:35:40 , Christopher Nebel wrote:

The issue of having : be a word break character in the main rules and pushing the Swedish/Finnish behavior into a locale was raised with the Unicode Technical Committee, and the decision was that wouldn't be the correct behavior. The en_US_POSIX locale behavior was then added specifically at Apple's request, that being considered the correct locale for behavior specific to programmers.

This is my locale:

# env | grep LANG
LANG=en_US.UTF-8

If I grab from CFLocale, then it shows en_US_POSIX.


I run this in Script Editor:

words of "1e:c2"

-->{"1e:c2"}

Please explain.

There isn't just one "locale" preference that controls everything, there are several to control various aspects. The relevant one in this case is the text break locale, which you can get from the global AppleTextBreakLocale preference -- if it's absent, the system uses AppleLanguages[0]. (Normal users would use in System Preferences > International > Language > Word Break.) AppleLocale and the LANG environment variable have no effect on text breaks.


Here are the preference keys for the various International Preferences settings (all technically subject to change, though that's unlikely):

Language preference order: AppleLanguages
Order for sorted lists: AppleCollationOrder if present, else AppleLanguages[0]
Text break behavior: AppleTextBreakLocale if present, else AppleLanguages[0]
Region/Calendar/Currency: AppleLocale (get the current locale, then get its ID). This is the current NSLocale/CFLocale.
Format customizations: a variety of separate preferences


These are all totally independent of one another. Setting AppleLocale should only change what's displayed in the Formats pane. You might have to relaunch System Preferences since setting it via the command line doesn't send any kind of notification.


--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Words of Bug in Leopard (Japanese environment)
      • From: Philip Aker <email@hidden>
References: 
 >Words of Bug in Leopard (Japanese environment) (From: Takaaki Naganoya <email@hidden>)
 >Re: Words of Bug in Leopard (Japanese environment) (From: Christopher Nebel <email@hidden>)
 >Re: Words of Bug in Leopard (Japanese environment) (From: Christopher Nebel <email@hidden>)
 >Re: Words of Bug in Leopard (Japanese environment) (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Class ksty
  • Next by Date: Re: Words of Bug in Leopard (Japanese environment)
  • Previous by thread: Re: Words of Bug in Leopard (Japanese environment)
  • Next by thread: Re: Words of Bug in Leopard (Japanese environment)
  • Index(es):
    • Date
    • Thread