• 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: Weird
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Weird
  • Next by Date: Re: Mac OS Version Sniffer
  • Previous by thread: Re: Weird
  • Next by thread: Bug lists?
  • Index(es):
    • Date
    • Thread