Re: Weird
Re: Weird
- Subject: Re: Weird
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 17 Oct 2002 19:00:03 -0400
on 02-10-17 3:11 PM, Chris Espinosa at email@hidden wrote:
>
Note that
>
(ASCII character 32) contains ((ASCII character 202) as Unicode
>
text)
>
is false.
>
>
The 'contains' operator does an equality comparison on each element of
>
the list or string in turn. As is usual with binary operators, the
>
right-hand operand is coerced to the same type as the left-hand operand
>
before the comparison.
Nice try, Chris, but I suspect the problem is more serious than this.
set x to "brick house" as Unicode text
set y to "brickhouse" as Unicode text
ignoring white space
return x = y --> false!
end ignoring
I reported this bug a few days ago, with no response. It seems like it might
be related. There seems to be a problem with the AppleScript Unicode
implementation when it comes to white space.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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: Weird (From: Chris Espinosa <email@hidden>) |