OpenOrbis / musl

A PS4 port of musl for the OpenOrbis PS4 Toolchain.
Other
34 stars 9 forks source link

Store current locale in a TLS variable #8

Closed sleirsgoevy closed 4 years ago

sleirsgoevy commented 4 years ago

Musl was storing the current locale for a thread in a field of struct pthread. As we don't control the layout of struct pthread on PS4, it has to be stored in a different place.

Fixes mbstowcs issue. Depends on the TLS fix.