xo_no_setlocale(3)

xo_no_setlocale3

Prevent implicit call to setlocale

Usage

#include <libxo/xo.h>

void

xo_no_setlocale(void);

Library

library “libxo”

Overview

libxo automatically initializes the locale based on the setting of the environment variables LC_CTYPE, LANG, and LC_ALL. The first of this list of variables is used and if none of the variables are set, the locale defaults to UTF-8. The caller may wish to avoid this behavior, and can do so by calling the xo_no_setlocale() function.

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 1 time.

  1. 11.0–11.1
  2. 11.2–16.0

History

The libxo library first appeared in FreeBSD 11.0.

Authors

libxo was written by Phil Shafer ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.