Remove useless locking which aso used a function not available when additions are built standalone

This commit is contained in:
Richard Frith-Macdonald 2025-03-09 15:38:23 +00:00
parent 2508bae63e
commit 667260aa26

View file

@ -3098,7 +3098,6 @@ GSPrivateNativeCStringEncoding()
char *old;
/* Take it from the system locale information. */
[GSPrivateGlobalLock() lock];
/* Initialise locale system by setting current locale from
* environment and then resetting it. Must be done before
* any call to nl_langinfo()
@ -3109,7 +3108,6 @@ GSPrivateNativeCStringEncoding()
}
strncpy(encbuf, nl_langinfo(CODESET), sizeof(encbuf)-1);
encbuf[sizeof(encbuf)-1] = '\0';
[GSPrivateGlobalLock() unlock];
#else
encbuf[0] = '\0';
#endif