MindTouch/DReAM — pull request #52 by vdaron (2012-01-22 13:52:45+00:00)
Title: Non US Culture management with decimal and double (resubmitted against 2.3)

Hi

Here is a patch that fix problem of decimal character separator in XDoc.Attr XDoc.Elem and Plug.With

Example :

XDoc.Attr("test",2.4) will output different results depending on the current locale

En-US : test="2.4"
FR-fr : test="2,4"

The XDoc.AsDouble method always expect an invariant encoding (2.4). 2,4 is therefore converted into 24 under FR locale.

I've added some Unit Tests

Thanks !

Vincent