On Thu, Jul 10, 2014 at 11:25:13PM +0200, Jean-Marc Lasgouttes wrote: > Le 10/07/14 22:33, Georg Baum a écrit : > >This breaks the tex2lyx tests with a german locale, probably since > >support::convert<double>(std::string const s) wants now a comma instead of > >a period as decimal point, so the string "0.3359375" gets now converted to > >0 instead of 0.3359375. Other conversions are probably broken as well, and > >unfortunately this is also in 2.1.1. > > > >The question is: Do we need two versions of support::convert() (one taking > >the current locale into account for user inout/output, and one always using > >the "C" locale for internal conversions), or was the old behaviour correct? > > Yes, we are again in locale hell... What about adding a > setlocale(LC_NUMERIC, "C") > ? Would that be enough?
I bet on it. -- Enrico