Words of Bug in Leopard (Japanese environment)
Words of Bug in Leopard (Japanese environment)
- Subject: Words of Bug in Leopard (Japanese environment)
- From: Takaaki Naganoya <email@hidden>
- Date: Wed, 6 Aug 2008 13:39:40 +0900
I tryed to get MAC address from en0 in Japanese environment.
<AppleScript>
set aMacAdrStr to (do shell script "ifconfig en0 | grep 'ether'")
set aW to words of aMacAdrStr
</AppleScript>
In Tiger, the result was reasonable.
<result in Tiger (10.4.11 + MacBook Pro 2.0GHz)+ Japanese User
Environment>
--> {"ether", "00", "1e", "c2", "01", "45", "bf"}
</result in Tiger>
But.. in Leopard....
<result in Leopard (10.5.4+ MacBook Pro 2.4GHz)+ Japanese User
Environment>
--> {"ether", "00", "1e:c2", "01", "45", "bf"}
</result in Leopard>
I could not believe my eyes...
<AppleScript>
words of "1e:c2"
</AppleScript>
This causes unexpected result. In English user environment, the result
was normal.
I have same test with some east asian language environment...
Chinese (Simple Chinese): Wrong
Hangul : Wrong
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/
_______________________________________________
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