|USELOCALE(3)||Library Functions Manual||USELOCALE(3)|
uselocale() selects newloc for use by functions in the current thread that do not take a locale_t argument. Neither the global locale set by setlocale(3) nor locales used by other threads change.
The current thread uses newloc until
uselocale() is called again successfully with a
non-null argument in the same thread, and passing
newlocale(3) before that results in
To revoke the use of newloc in the current
thread without installing another thread-specific locale, instead reverting
to the global locale, call
uselocale() with the
When called with the argument (locale_t)0, the thread-specific locale remains unchanged.
uselocale() returns the thread-specific locale which is in use right before the call, or the special return value
LC_GLOBAL_LOCALEif the thread used the global locale before the call.
uselocale() fails if:
uselocale() conforms to IEEE Std 1003.1-2008 (“POSIX.1”).
uselocale() has been available since OpenBSD 6.2.
|September 5, 2017||OpenBSD-current|