i took your suggestion and created a new function in ut_units.cpp (UT_formatDimensionedValue()) which does the required locale magic and re-did inline code below to use it instead. thanks jeff On Sat, 11 Dec 1999, Henrik Berg wrote: > >%_diff -u -r -N -x CVS -x WIN32_20.1_i386_DBG --minimal >abi.org/src/text/fmt/xp/fl_DocLayout.cpp abi/src/text/fmt/xp/fl_DocLayout.cpp > --- abi.org/src/text/fmt/xp/fl_DocLayout.cpp Thu Dec 9 14:02:38 1999 > +++ abi/src/text/fmt/xp/fl_DocLayout.cpp Sat Dec 11 23:12:24 1999 > newSize = UT_convertToPoints(pszSize); > newSize *= (double)2/(double)3; > + // TODO perhaps move conversion to ut_units.cpp? > + setlocale(LC_NUMERIC,"C"); > sprintf(buf, "%fpt", newSize); > + setlocale(LC_NUMERIC,""); // restore original locale
