uselocale(3) Library Functions Manual uselocale(3) uselocale - / LIBRARY Standard C library (libc, -lc) #include locale_t uselocale(locale_t newloc); glibc (. feature_test_macros(7)): uselocale(): Since glibc 2.10: _XOPEN_SOURCE >= 700 Before glibc 2.10: _GNU_SOURCE uselocale() . uselocale() , , newloc. newloc : , newlocale(3) duplocale(3) . LC_GLOBAL_LOCALE , 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 3 , . . , , . Linux man-pages 6.06 31 2023 . uselocale(3)