Re: [dev] [dmenu] crashes with "warning: locale not supported" on fresh install of Xubuntu 16.04

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Wed, 26 Apr 2017 15:46:57 +0200

Hi

On Wed, Apr 26, 2017 at 11:14 AM, Prashanth Chandra
<coolshanth94_AT_gmail.com> wrote:
> Correction in my last email.
>
> dmenu_run works when I do `LANG="en_US.UTF-8" dmenu_run`.

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

When I run dmenu (git tip) I don't have any issues.
$ ./dmenu_run

When I run dmenu_run with an unsupported locale, the following happens.

$ locale -a
C
en_US.utf8
POSIX


$ LANG="en_HK.UTF-8" ./dmenu_run
$ warning: no locale support

Meaning I get a warning but everything works nonetheless.

Are you sure that the dmenu menu bar is not opening for you?

I had a quick grep through the code and we are not using wchar_t or
one of the mb*/wc* functions once. IIRC, the locale should not make a
difference in that case.


Cheers,

Silvan
Received on Wed Apr 26 2017 - 15:46:57 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 26 2017 - 15:48:17 CEST