duplocale: fix missing locale magic when creating a new locale.

Fixes #18345.

Change-Id: Ibedfa973b371b65a502dc655eae65f4ed0833144
This commit is contained in:
Jessica Hamilton 2023-04-20 04:45:42 +00:00
parent 44daad619e
commit 4d8698c300

View File

@ -81,6 +81,8 @@ duplocale(locale_t l)
newBackend->SetLocale(lc, backend->SetLocale(lc, NULL));
}
newObj->magic = LOCALE_T_MAGIC;
return (locale_t)newObj;
}