Re: preflighting a file [>32K bugs]
Re: preflighting a file [>32K bugs]
- Subject: Re: preflighting a file [>32K bugs]
- From: Deivy Petrescu <email@hidden>
- Date: Wed, 20 Feb 2002 18:52:06 -0500
At 1:58 PM +0000 2/20/02, has wrote:
Shane Stanley wrote:
>On 19/2/02 8:43 PM +1000, Emmanuel, email@hidden, wrote:
>
>>> The "is in" comparison fails with strings greater than 32K.
>>
>I'm not sure it's a bug (I get the same wrong result), so much as a
>manifestation of the known problem of doing comparisons with strings >32K;
>presumably "is in", "contains", ">", "=", etc, all use the same routines
>that are limited to 32K.
IOW a bug. ;)
You are right! It is a bug.
The following script:
set n to 11 -- change n
set x to "abcdefghijklmnop"
repeat with l from 1 to n
set y to x & x
if (l = n - 1) then set z to y
set x to y
end repeat
if x contains z then say "It is a bug!"
works as follows :
n=10 --> It is a bug
n=11 --> nothing!
n=12 --> It is a bug
n=13 --> It is a bug
n=14 --> It is a bug
n=15 --> Out of memory
but all, except 10, fail with z replaced by "abc".
So one way or another, this is a bug!
AS says so!
Deivy Petrescu
http://www.dicas.com
_______________________________________________
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.