Re: Unsupported locale errors in XOrg

2018-04-11 Thread Prashanth Chandra
Ilya,

1.
/usr/share/X11/locale/locale.dir
does contain the line
en_US.UTF-8/XLC_LOCALE: en_HK.UTF-8
2.
/usr/share/X11/locale/locale.alias
doesn't contain a line beginning with
en_HK.UTF-8:
does contain lines beginning with
en_HK.utf8, en_HK.iso88591, etc.
3.
/etc/locale.gen
is fully commented except for the following two uncommented lines:
en_HK.UTF-8 UTF-8
en_US.UTF-8 UTF-8
4.
/etc/locale.alias
doesn't contain the string en_HK.UTF-8
5.
Then, I ran sudo update-locale LANG="en_HK.utf-8" LANGUAGE="en_HK" and rebooted
my locale was changed to the following:
LANG=en_HK.utf-8
LANGUAGE=en_HK
LC_CTYPE="en_HK.utf-8"
LC_NUMERIC="en_HK.utf-8"
LC_TIME="en_HK.utf-8"
LC_COLLATE="en_HK.utf-8"
LC_MONETARY="en_HK.utf-8"
LC_MESSAGES="en_HK.utf-8"
LC_PAPER="en_HK.utf-8"
LC_NAME="en_HK.utf-8"
LC_ADDRESS="en_HK.utf-8"
LC_TELEPHONE="en_HK.utf-8"
LC_MEASUREMENT="en_HK.utf-8"
LC_IDENTIFICATION="en_HK.utf-8"
LC_ALL=
But I'm still seeing the same errors.
6.
I don't know if this means anything, but I can't find any locales
starting with en_HK under /usr/share/X11/locale,
though I do see en_US.UTF-8.


Thomas,

That was the closest thread I found that matches my issue, though I'm
quite confident the root cause is entirely different.
I've seen this error for the first time a few years back and every
time I boot into a new install of Ubuntu desktop (the installer
detects IP country and uses it to set the locale),
though I've always ignored it and forced the default locale to en_US.UTF-8.

On Tue, Apr 10, 2018 at 4:08 PM, Thomas Lübking  wrote:
> On Tue, Apr 10, 2018 at 02:17:13AM +0800, Prashanth Chandra wrote:
>>
>> Hello,
>>
>> I'm getting "unsupported locale" warnings and crashes when running
>> programs such as xterm or dmenu on a clean install of Ubuntu 17.10
>>
>> Examples:
>> 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);
>
>
> You certainly have bleachbit installed ...?
>
> https://bbs.archlinux.org/viewtopic.php?pid=1669411#p1669411
>
>
> ___
> xorg@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
___
xorg@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

Re: Unsupported locale errors in XOrg

2018-04-11 Thread Thomas Lübking

On Tue, Apr 10, 2018 at 02:17:13AM +0800, Prashanth Chandra wrote:

Hello,

I'm getting "unsupported locale" warnings and crashes when running
programs such as xterm or dmenu on a clean install of Ubuntu 17.10

Examples:
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);


You certainly have bleachbit installed ...?

https://bbs.archlinux.org/viewtopic.php?pid=1669411#p1669411

___
xorg@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

Re: Unsupported locale errors in XOrg

2018-04-10 Thread Ilya Anfimov
On Tue, Apr 10, 2018 at 02:17:13AM +0800, Prashanth Chandra wrote:
> Hello,
> 
> I'm getting "unsupported locale" warnings and crashes when running
> programs such as xterm or dmenu on a clean install of Ubuntu 17.10
> 
> Examples:
> 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:
> 
> LANG=en_HK.UTF-8
> LANGUAGE=en
> LC_CTYPE="en_HK.UTF-8"
> LC_NUMERIC="en_HK.UTF-8"
> LC_TIME="en_HK.UTF-8"
> LC_COLLATE="en_HK.UTF-8"
> LC_MONETARY="en_HK.UTF-8"
> LC_MESSAGES="en_HK.UTF-8"
> LC_PAPER="en_HK.UTF-8"
> LC_NAME="en_HK.UTF-8"
> LC_ADDRESS="en_HK.UTF-8"
> LC_TELEPHONE="en_HK.UTF-8"
> LC_MEASUREMENT="en_HK.UTF-8"
> LC_IDENTIFICATION="en_HK.UTF-8"
> LC_ALL=
> 
> Here's the output of running locale -a:
> 
> C
> C.UTF-8
> en_HK.utf8
> en_US.utf8
> POSIX
> 
> 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:
  /usr/share/X11/locale.dir 
   should contain a line
en_US.UTF-8/XLC_LOCALE: en_HK.UTF-8
  /usr/share/X11/locale.alias
   shouldn't contain a line beginning with en_HK.UTF-8:
  /etc/locale.gen 
  should have uncommented (i.e. without hash mark at the beginning) line
  en_HK.UTF-8 UTF-8
  and /etc/locale.alias shouldn't contain a line beginning with en_HK.UTF-8

> 
> Prashanth
> ___
> xorg@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
___
xorg@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

Unsupported locale errors in XOrg

2018-04-09 Thread Prashanth Chandra
Hello,

I'm getting "unsupported locale" warnings and crashes when running
programs such as xterm or dmenu on a clean install of Ubuntu 17.10

Examples:
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:

LANG=en_HK.UTF-8
LANGUAGE=en
LC_CTYPE="en_HK.UTF-8"
LC_NUMERIC="en_HK.UTF-8"
LC_TIME="en_HK.UTF-8"
LC_COLLATE="en_HK.UTF-8"
LC_MONETARY="en_HK.UTF-8"
LC_MESSAGES="en_HK.UTF-8"
LC_PAPER="en_HK.UTF-8"
LC_NAME="en_HK.UTF-8"
LC_ADDRESS="en_HK.UTF-8"
LC_TELEPHONE="en_HK.UTF-8"
LC_MEASUREMENT="en_HK.UTF-8"
LC_IDENTIFICATION="en_HK.UTF-8"
LC_ALL=

Here's the output of running locale -a:

C
C.UTF-8
en_HK.utf8
en_US.utf8
POSIX

Would appreciate any pointers in understanding this issue.

Prashanth
___
xorg@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