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

2017-04-26 Thread Silvan Jegen
Hi

On Wed, Apr 26, 2017 at 11:14 AM, Prashanth Chandra
 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



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

2017-04-26 Thread Prashanth Chandra
Correction in my last email.

dmenu_run works when I do `LANG="en_US.UTF-8" dmenu_run`.

On Wed, Apr 26, 2017 at 5:13 PM, Prashanth Chandra
 wrote:
> My apologies.
>
> The exact problem is that dmenu_run prints "warning: locale not
> supported" then just hangs there, when my locale is set to en_HK.UTF-8
> (set with `sudo dpkg reconfigure locales`)
>
> As I mentioned, I'm running i3 in a fresh install of Xubuntu 16.04,
> with a fresh install of i3, no configuration whatsoever.
> It works as expected when I do `LANG="en_US.UTF-8"` so I don't think
> it has anything to do with the environment.
>
> Warm Regards,
> Prashanth



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

2017-04-26 Thread Prashanth Chandra
My apologies.

The exact problem is that dmenu_run prints "warning: locale not
supported" then just hangs there, when my locale is set to en_HK.UTF-8
(set with `sudo dpkg reconfigure locales`)

As I mentioned, I'm running i3 in a fresh install of Xubuntu 16.04,
with a fresh install of i3, no configuration whatsoever.
It works as expected when I do `LANG="en_US.UTF-8"` so I don't think
it has anything to do with the environment.

Warm Regards,
Prashanth



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

2017-04-25 Thread Martin Kühne
Not enough data for meaningful answer. You haven't described what
exactly the problem or your expectation is and in what environment
you're trying to run dmenu, like the desktop environment/window
manager. Did you configure dmenu to some extent, like passing command
line flags or even compile your own configuration?

cheers!
mar77i