LIBXO(3)
π LIBXO(3) β the manual, but make it slay π
okay bestie, welcome to the LIBXO(3) page, from the Library Functions Manual. this one's short and sweet and it's literally just one little function, but she's important, so let's get into it π«Ά
β¨ NAME β¨
xo_no_setlocale β prevent implicit call to setlocale
like. the whole job. that's her. π
π LIBRARY π
library "libxo" β that's the one you're linking against, no cap.
πΈ SYNOPSIS πΈ
#include <libxo/xo.h>
void
xo_no_setlocale(void);
that's it. that's the whole vibe. one include, one function, zero arguments, returns nothing. iconic behavior honestly π
π¦ DESCRIPTION π¦
okay so here's the tea β. libxo auto-initializes the locale for you, based on whatever's set in the environment variables LC_CTYPE, LANG, and LC_ALL.
the way it works: it takes the first one of those three in that list that's set, and uses that. and if none of the variables are set, the locale just defaults to UTF-8. comfy, right? π
but sometimes you β the caller β are like "no thank you, I got this myself" π
and you want to avoid that whole behavior. that's when you call xo_no_setlocale(). she's the "please don't touch my locale" button. periodt. π
π SEE ALSO π
go read those too, bestie, they're the friend group π«Ά
π HISTORY π
the libxo library first appeared in FreeBSD 11.0. a legend was born β¨
π AUTHORS π
libxo was written by Phil Shafer <phil@freebsd.org> β thank you king, we owe you everything π
π ADDITIONAL DOCUMENTATION π
FreeBSD uses libxo version 1.7.5. if you want the complete documentation (and who doesn't, honestly), it's on github:
https://juniper.github.io/libxo/1.7.5/html/index.html
libxo lives on github as:
https://github.com/Juniper/libxo
and the latest release of libxo is available at:
https://github.com/Juniper/libxo/releases
go, read, be obsessed ππ
π°οΈ HISTORY π°οΈ
(yeah there's a second one, the manpage said it twice and I'm not gonna gatekeep π)
the libxo library was added in FreeBSD 11.0. same era, same legend.
π«Ά AUTHOR π«Ά
Phil Shafer
and that's the whole page, bestie!! this one came from the Debian crew, dated December 4, 2014, and it's filed under LIBXO(3). go forth and don't let anyone set your locale without asking first π
β¨ππ¦
π¦ where this page comes from
- epel 9: libxo-devel 1.7.5-1.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: libxo-devel 1.7.5-2.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: libxo-devel 1.7.5-2.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: libxo-devel 1.7.5-3.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: libxo-devel 1.7.5-3.fc44 Β· LicenseRef-Callaway-BSD
- nixpkgs unstable: libxo 1.7.5
- Copyright (c) 2014, Juniper Networks, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms