Date: Fri, 16 Feb 2018 06:08:57 -0500 From: Lee D <embaudarm@gmail.com> To: freebsd-hackers@freebsd.org Subject: How to set various locales with setlocale()? Message-ID: <CANC_bnOgf%2BFA5adpkh2Fvap7m_3zL=APgSge9s34h18EaBk-nQ@mail.gmail.com>
index | next in thread | raw e-mail
Hi, I have a C program that needs to print the date in the correct form for the appropriate locale. Unfortunately, setlocale() will not accept any of the locale names in /usr/share/locale/, (which is documented in the man page for setlocale()). This is an embedded program running on custom arm hardware, not a normal user system, so I am trying to do everything from within the C program. Setting an environment variable and rebooting would be cumbersome. Do you folks have any suggestions on how to accomplish this goal, or how to make setlocale accept the locales listed on the system? Thanks.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANC_bnOgf%2BFA5adpkh2Fvap7m_3zL=APgSge9s34h18EaBk-nQ>
