Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: watch(1): fix UTF-8
To:
Job Snijders <job@openbsd.org>
Cc:
tech@openbsd.org
Date:
Wed, 21 May 2025 14:36:32 +0200

Download raw body.

Thread
On Wed, May 21, 2025 at 12:22:33PM +0000, Job Snijders wrote:
> But, maybe also do just setlocale(LC_ALL, "") - according to the curses
> man page? Which way to go?

Calling just setlocale(LC_CTYPE, ""); at the beginning of main()
should suffice. libc should then do the right thing internally
according to relevant environment variables (displayed by locale(1)).