[Mono-dev] RE: [Mono-patches]r48372-trunk/mcs/class/System.Drawing/System.Drawing
Gert Driesen
gert.driesen at telenet.be
Tue Aug 16 04:43:37 EDT 2005
> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com
> [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf
> Of Kornél Pál
> Sent: maandag 15 augustus 2005 15:33
> To: Andrew Skiba; Gert Driesen <gert.driesen at pandora.be>
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] RE:
> [Mono-patches]r48372-trunk/mcs/class/System.Drawing/System.Drawing
>
> I've created a test. Attached as PointCultureTest.cs.
>
> The following are results on .NET Framework 1.1 SP1:
>
> Has to be: {X=-2,Y=-8}
> en-US: {X=-2,Y=-8}
> With CultureInfo.InvariantCulture: {X=-2,Y=-8}
> With CultureInfo.CurrentCulture:
> {X=myNegativeSign2,Y=myNegativeSign8}
> MyCultureInfo:
> {X=myNegativeSign2,Y=myNegativeSign8}
>
> This shows that System.Drawing.Point.ToString() is using
> CultureInfo.CurrentCulture (the default, when no format
> provider specified)
> and not CultureInfo.InvariantCulture that was assumed by Gert.
>
> I think this patch should be reverted.
You're correct. Our test cases were actual wrong. I'm fixing both right now.
Gert
More information about the Mono-devel-list
mailing list