diff --git a/uppsrc/Core/Core.h b/uppsrc/Core/Core.h index c26f84555..5965f7955 100644 --- a/uppsrc/Core/Core.h +++ b/uppsrc/Core/Core.h @@ -260,7 +260,7 @@ namespace std { #define UPP Upp // #define atof @ // atof is broken, as it depends on setlocale - might want ',' instead of '.' breaking a lot of code -// Use Atof instead (which accepts both '.' and ',' as decimal separator) +// Use Atof instead which is fixed with '.' namespace Upp { diff --git a/uppsrc/Core/CvFlt.cpp b/uppsrc/Core/CvFlt.cpp index 2cc76bd96..6cbe13f77 100644 --- a/uppsrc/Core/CvFlt.cpp +++ b/uppsrc/Core/CvFlt.cpp @@ -660,7 +660,7 @@ double ScanDouble(const wchar *ptr) double Atof(const char *s) { double n; - return ScanDbl(n, s, ',') ? n : 0; + return ScanDbl(n, s, 0) ? n : 0; } double CParser::ReadDouble()