1.\" #
2.\" # Copyright (c) 2014, Juniper Networks, Inc.
3.\" # All rights reserved.
4.\" # This SOFTWARE is licensed under the LICENSE provided in the
5.\" # ../Copyright file. By downloading, installing, copying, or
6.\" # using the SOFTWARE, you agree to be bound by the terms of that
7.\" # LICENSE.
8.\" # Phil Shafer, July 2014
9.\"
10.Dd December 4, 2014
11.Dt LIBXO 3
12.Os
13.Sh NAME
14.Nm xo_no_setlocale
15.Nd prevent implicit call to setlocale
16.Sh LIBRARY
17.Lb libxo
18.Sh SYNOPSIS
19.In libxo/xo.h
20.Ft void
21.Fn xo_no_setlocale "void"
22.Sh DESCRIPTION
23.Nm libxo
24automatically initializes the locale based on the setting of the
25environment variables
26.Ev LC_CTYPE ,
27.Ev LANG ,
28and
29.Ev LC_ALL .
30The first of this
31list of variables is used and if none of the variables are set, the locale
32defaults to
33.Em UTF-8 .
34The caller may wish to avoid this behavior, and
35can do so by calling the
36.Fn xo_no_setlocale
37function.
38.Sh SEE ALSO
39.Xr xo_emit 3 ,
40.Xr xo_open_container 3 ,
41.Xr xo_open_list 3 ,
42.Xr xo_format 5 ,
43.Xr libxo 3
44.Sh HISTORY
45The
46.Nm libxo
47library first appeared in
48.Fx 11.0 .
49.Sh AUTHORS
50.Nm libxo
51was written by
52.An Phil Shafer Aq Mt phil@freebsd.org .
53
54