Unsupported locale errors in XOrg
ilan at tzirechnoy.com
Tue Apr 10 07:54:37 UTC 2018
On Tue, Apr 10, 2018 at 02:17:13AM +0800, Prashanth Chandra wrote:
> I'm getting "unsupported locale" warnings and crashes when running
> programs such as xterm or dmenu on a clean install of Ubuntu 17.10
> warning: no locale support
> Warning: locale not supported by Xlib, locale set to C
> Here's the offending line from dmenu's source code:
> if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
> fputs("warning: no locale support\n", stderr);
> I'm not 100% sure but I was told that this looks like an issue in XOrg.
> Additionally, the problem disappears if I change my default locale to
> en_US.UTF-8 instead of en_HK.UTF-8, which suggests that the issue is
> specific to my locale.
> Here's the output of running locale:
> Here's the output of running locale -a:
> Would appreciate any pointers in understanding this issue.
1) You could try to change environment to en_HK.utf8
The name is obviously different from en_HK.UTF-8, hoever,
this difference should give other diagnostic message.
But you can try, it is simple.
2) If not, check all places:
should contain a line
shouldn't contain a line beginning with en_HK.UTF-8:
should have uncommented (i.e. without hash mark at the beginning) line
and /etc/locale.alias shouldn't contain a line beginning with en_HK.UTF-8
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
More information about the xorg