Change to use _LocalizedNumParser in IO
[platform/framework/native/appfw.git] / src / io / FIo_RegistryCore.cpp
index 4fde00e..2c916bb 100644 (file)
@@ -37,6 +37,7 @@
 #include <FIoRegistry.h>
 
 #include <FBase_StringConverter.h>
+#include <FBase_LocalizedNumParser.h>
 #include <FApp_AppInfo.h>
 #include "FIo_FileImpl.h"
 #include "FIo_NormalRegistry.h"
@@ -1477,7 +1478,6 @@ _RegistryCore::DecodeData(const String& strValueEncoded, _RegValueType type, voi
                                        // for positive values.
        {
                double retDoubleVal = 0;
-               result r = E_SUCCESS;
 
                if (*pSize != sizeof(double))
                {
@@ -1485,10 +1485,12 @@ _RegistryCore::DecodeData(const String& strValueEncoded, _RegValueType type, voi
                        return;
                }
 
-               r = Double::Parse(strValueEncoded, retDoubleVal);
-               SysTryReturnVoidResult(NID_IO, !IsFailed(r), E_PARSING_FAILED, "[%s] Propagated.", GetErrorMessage(r));
+               retDoubleVal = _LocalizedNumParser::ToDouble(strValueEncoded, "C");
+               result r = GetLastResult();
+               SysTryReturnVoidResult(NID_IO, r == E_SUCCESS, E_PARSING_FAILED, "[%s] Propagated.", GetErrorMessage(r));
 
                *(double*) pValue = retDoubleVal;
+
                break;
        }