RE: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-08 Thread Andrew Skiba
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

RE: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-05 Thread Ben Maurer
> 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

RE: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-05 Thread Andrew Skiba
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

Re: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-03 Thread Kornél Pál
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

Re: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-03 Thread Matthijs ter Woord
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

RE: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-03 Thread Ben Maurer
> + 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

RE: [Mono-dev] UrlEncode difference in dotnet and mono

2006-01-03 Thread Andrew Skiba
Assert.IsTrue (s != System.Web.HttpUtility.UrlEncode(s), + "UrlEncode must escape character '"+s+"'"); + } + } } } > -Original Message- > From: Ben Maure

Re: [Mono-dev] UrlEncode difference in dotnet and mono

2005-12-21 Thread Ben Maurer
> 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

[Mono-dev] UrlEncode difference in dotnet and mono

2005-12-21 Thread Andrew Skiba
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