Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: [new] sysutils/btop v1.3.0
To:
Laurent Cheylus <foxy@free.fr>
Cc:
Ports <ports@openbsd.org>
Date:
Thu, 8 Feb 2024 09:22:04 +0000

Download raw body.

Thread
On 2024/02/08 10:10, Laurent Cheylus wrote:
> > I need to use --utf-force otherwise I get this:
> > 
> > $ btop
> > ERROR: No UTF-8 locale detected!
> > Use --utf-force argument to force start if you're sure your terminal
> > can handle it.
> > 
> > (I am in a UTF-8 environment but as is common on OpenBSD that's set
> > via LC_CTYPE not LC_ALL).
> 
> According to the code (https://github.com/aristocratos/btop/blob/main/src/btop.cpp#L915), UTF-8 support is detected via LC_ALL and LANG locales.

Yes, but that is not enough, it should check LC_CTYPE 5oo.

> I have no issue in my OpenBSD env with UTF-8 support for btop:

The standard way to use UTF-8 on OpenBSD is to *only* set LC_CTYPE.

https://www.openbsd.org/faq/faq10.html#locales

> $ locale
> LANG=en_US.UTF-8
> LC_COLLATE="en_US.UTF-8"
> LC_CTYPE=en_US.UTF-8
> LC_MONETARY="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_ALL=
> 
> Laurent
>