[Mono-dev] [PATCH] ASP.NET - make FontUnit NOT use locale-dependent decimal separator

Gert Driesen gert.driesen at telenet.be
Sat Feb 10 08:28:54 EST 2007


> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] On Behalf Of Marek Habersack
> Sent: zaterdag 10 februari 2007 6:20
> To: Mono Development List
> Subject: [Mono-dev] [PATCH] ASP.NET - make FontUnit NOT use locale-
> dependent decimal separator
> 
> Hello,
> 
>   The attached diff fixes the issue mentioned in the subject. Currently
> mono will fail to parse font-size=0.Xem (etc) correctly if the current
> thread culture is set to a locale that uses , as the decimal point
> separator (e.g. de, pl). Please review, thanks

This does not match the MS behavior. I've added a unit test to
FontUnitTest.cs to verify this, and fixed FontUnit.ToString() to use the
current locale.

Gert




More information about the Mono-devel-list mailing list