1.Dd March 11, 2005
2.Dt USELOCALE 3
3.Os
4.Sh NAME
5.Nm uselocale
6.Nd Set the per-thread locale
7.Sh SYNOPSIS
8.In xlocale.h
9.Ft locale_t
10.Fn uselocale "locale_t loc"
11.Sh DESCRIPTION
12Sets the per-thread locale to
13.Va loc .
14Specify
15.Dv LC_GLOBAL_LOCALE
16to turn off any per-thread locale.
17Pass
18.Dv NULL
19to return the current value of the per-thread locale (or
20.Dv LC_GLOBAL_LOCALE )
21without changing the locale.
22.Sh RETURN VALUES
23Returns the previous locale, or
24.Dv LC_GLOBAL_LOCALE
25if no per-thread locale was in effect.
26.Sh SEE ALSO
27.Xr duplocale 3 ,
28.Xr freelocale 3 ,
29.Xr newlocale 3 ,
30.Xr querylocale 3 ,
31.Xr xlocale 3
32