Re: Words of Bug in Leopard (Japanese environment)
Re: Words of Bug in Leopard (Japanese environment)
- Subject: Re: Words of Bug in Leopard (Japanese environment)
- From: Philip Aker <email@hidden>
- Date: Tue, 5 Aug 2008 22:14:51 -0700
On 2008-08-05, at 21:39:40 , Takaaki Naganoya wrote:
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
This Leopard release has a lot of problems -- not just languages. The
Cocoamites don't seem to realize the amount of finesse involved in a
Mac OS.
Can this work for you:
ifconfig en0 ether | grep ether | tr : ' ' | cut -d ' ' -f 2-
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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