You are not logged in.

#1 2013-05-17 03:50:05

Piroca
Member
From: Brazil
Registered: 2013-04-27
Posts: 4

Locale not supported by Xlib

When I try to run some programs, they warn that the locale is not supported by Xlib. The ones that warn me, can't get correct input from my keyboard, especially characters like é, ã, â, etc.

Here are some outputs:

$ urxvt
urxvt: the locale is not supported by Xlib, continuing without locale support.
$ xterm 
Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
xterm: Failed to open input method
$ cat /etc/locale.conf 
LANG=en_US.utf8
LC_COLLATE=C
$ grep -v '^#' /etc/locale.gen 
en_US.UTF-8 UTF-8 
$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
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=
$ locale -a
C
POSIX
en_US.utf8

Offline

#2 2013-05-17 04:19:53

weirddan455
Member
Registered: 2012-04-15
Posts: 194

Re: Locale not supported by Xlib

$ cat /etc/locale.conf 
LANG=en_US.utf8
LC_COLLATE=C

You forgot the dash.  Caps might matter as well.  I have:

$ cat /etc/locale.conf
LANG=en_US.UTF-8

You could also try running "locale-gen" as root and here's a wiki article about how to correctly set this all up:

https://wiki.archlinux.org/index.php/Be … ide#Locale

Last edited by weirddan455 (2013-05-17 04:21:38)

Offline

#3 2013-05-17 04:31:19

Piroca
Member
From: Brazil
Registered: 2013-04-27
Posts: 4

Re: Locale not supported by Xlib

Tried with caps and dash

$ cat /etc/locale.conf 
LANG=en_US.UTF-8
LC_COLLATE=C

And of course, locale-gen as root:

# locale-gen
Generating locales...
  en_US.UTF-8... done
Generation complete.

Still gives me the exact same warning and I can't type the special characters.

Offline

#4 2013-05-17 08:47:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Locale not supported by Xlib

Offline

Board footer

Powered by FluxBB