uselocale(3) Library Functions Manual uselocale(3) uselocale - / C (libc, -lc) #include locale_t uselocale(locale_t newloc); glibc (. feature_test_macros(7)): uselocale(): glibc 2.10: _XOPEN_SOURCE >= 700 glibc 2.10: _GNU_SOURCE uselocale() . uselocale() , , newloc. newloc : A handle returned by a call to newlocale(3) or duplocale(3) The calling thread's current locale is set to the specified locale. The special locale object handle LC_GLOBAL_LOCALE The calling thread's current locale is set to the global locale determined by setlocale(3). (locale_t) 0 ( ). On success, uselocale() returns the locale handle that was set by the previous call to uselocale() in this thread, or LC_GLOBAL_LOCALE if there was no such previous call. On error, it returns (locale_t) 0, and sets errno to indicate the error. EINVAL newloc . POSIX.1-2008. glibc 2.3. POSIX.1-2008. setlocale(3), uselocale() . , , duplocale(3) newlocale(3) . newlocale(3) duplocale(3). locale(1), duplocale(3), freelocale(3), newlocale(3), setlocale(3), locale(5), locale(7) () Azamat Hackimov , Dmitriy Ovchinnikov , Dmitry Bolkhovskikh , Katrin Kutepova , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () . Linux man-pages 6.18 8 2026 . uselocale(3)