*
* This file contains the definition of _JsonWriterImpl class.
*/
+#include <clocale>
#include <new>
#include <unique_ptr.h>
#include <FBaseByteBuffer.h>
return E_INVALID_DATA;
}
+ locale_t _locale = 0;
+ char* pLocale = "C";
+
+ _locale = newlocale(LC_ALL, pLocale, null);
+ SysTryReturnResult(NID_BASE, _locale != null, E_SYSTEM, "Creating a new locale object failed.");
+
+ uselocale(_locale);
+
wchar_t sValue[DBL_MAX_LENGTH + 1] = {0, };
swprintf(sValue, sizeof(sValue) / sizeof(sValue[0]), L"%.16lg", value);
numString = String(sValue);
+
+ freelocale(_locale);
+ uselocale(LC_GLOBAL_LOCALE);
+
return E_SUCCESS;
}