mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[c] Closes #690, resetting old locale should work now
This commit is contained in:
parent
1f9649e7df
commit
684f6dcf3e
@ -569,7 +569,8 @@ spSkeletonData* spSkeletonJson_readSkeletonData (spSkeletonJson* self, const cha
|
|||||||
CONST_CAST(char*, self->error) = 0;
|
CONST_CAST(char*, self->error) = 0;
|
||||||
internal->linkedMeshCount = 0;
|
internal->linkedMeshCount = 0;
|
||||||
|
|
||||||
oldLocale = setlocale(LC_NUMERIC, "C");
|
oldLocale = setlocale(LC_NUMERIC, NULL);
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
root = Json_create(json);
|
root = Json_create(json);
|
||||||
setlocale(LC_NUMERIC, oldLocale);
|
setlocale(LC_NUMERIC, oldLocale);
|
||||||
if (!root) {
|
if (!root) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user