Version: CVS (using KDE 4.4.5) OS: Linux atof convert ascii to float using the locale setting but povray need "." as decimal separator. In system where the decimal separator is "," the value are truncated at the integer part. This patch seem work ... Reproducible: Always Steps to Reproduce: Set a locale with "," as decimal separator and import a file .pov with float values Actual Results: Integer truncated Expected Results: float
Created attachment 55476 [details] Set LC_NUMERIC to POSIX during the conversion
Right, and this was the issue you fixed in your original patch by replacing atof with a Qt function. I think replacing it is a better fix. Will recheck your old patch in the coming days.
SVN commit 1212937 by cfeck: Parse floats in C locale Use QByteArray::toDouble() instead of atof(). The Qt function is documented to always use the C locale (which has "." as the decimal separator), instead of the current locale. BUG: 261884 M +2 -2 pmscanner.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1212937