Re: About integers
Re: About integers
- Subject: Re: About integers
- From: Christopher Nebel <email@hidden>
- Date: Wed, 2 Mar 2005 16:19:27 -0800
On Mar 2, 2005, at 12:23 PM, Doug McNutt wrote:
At 11:42 -0800 3/1/05, Christopher Nebel wrote:
Regardless, it should work with "write ... as [unsigned] integer",
assuming the number is in the appropriate range for the type.
You're relying on Apple Event Manager coercions at that point.
Does that mean a 32 bit unsigned integer that needs the most
significant 2 bits, but happens to be in a floating point 64 bit
byte, will get written correctly in 32 bit format?
Yes. When you say "write ... as <type>", what goes into the file is
the Apple Event Manager representation of that type (assuming the
original value can be coerced). For "integer", that's 32-bit
twos-complement, "unsigned integer" is 32-bit unsigned.
If we're in the Unicode world, are password characters that use the
most significant bit converted to UTF-x before UNIX does its hashing?
Quoting from <http://developer.apple.com/technotes/tn2002/tn2065.html>,
"do shell script handles all its input and output as UTF-8."
--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:
This email sent to email@hidden