Hi Ben.
You wrote
> A much better test
> would be to copy to proposed impl into the test suite (you'd
> first have to make sure manually that it gives the exact same
> result for any given char as msft). Then make the test check
> that the result is the same as the copied impl. This would be
> Hi Ben.
>
> You wrote:
>>
>> > + for (char c=Char.MinValue; c<128; c++)
>>
>> chars are from 0 to 2^16-1
>>
>
> I do check those chars. Look at the second loop that iterates from 128
> to Char.MaxValue (did you notice it?)
>
> Let me clarify my idea: I could not create expected r
Hi Ben.
You wrote:
>
> > + for (char c=Char.MinValue; c<128; c++)
>
> chars are from 0 to 2^16-1
>
I do check those chars. Look at the second loop that iterates from 128
to Char.MaxValue (did you notice it?)
Let me clarify my idea: I could not create expected results for 64K
MAIL PROTECTED]>;
Sent: Tuesday, January 03, 2006 6:51 PM
Subject: Re: [Mono-dev] UrlEncode difference in dotnet and mono
Just use Char.MaxValue instead of 128
- Original Message -
From: "Ben Maurer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: ; <[EMAI
Just use Char.MaxValue instead of 128
- Original Message -
From: "Ben Maurer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: ; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, January 03, 2006 6:41 PM
Subject: RE: [Mono-dev] UrlEncode differenc
> + for (char c=Char.MinValue; c<128; c++)
chars are from 0 to 2^16-1
-- Ben
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Assert.IsTrue (s !=
System.Web.HttpUtility.UrlEncode(s),
+ "UrlEncode must escape character
'"+s+"'");
+ }
+ }
}
}
> -Original Message-
> From: Ben Maure
> Hi Gonzalo,
>
> I found that UrlEncode behaves differently in dotnet and Mono, namely
> Mono encodes the asterisk (*) symbol into %2a.
>
> The following code prints different values, for example:
>
> public static void Main ()
> {
> Console.Out.WriteLine
> (System.Web.Ht
Hi Gonzalo,
I found that UrlEncode behaves differently in dotnet and Mono, namely
Mono encodes the asterisk (*) symbol into %2a.
The following code prints different values, for example:
public static void Main ()
{
Console.Out.WriteLine
(System.Web.HttpUtility.Url