You are not logged in.

#1 2016-11-09 10:04:06

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

dmenu warning: no locale support (even when locale is set) [SOLVED]

I hope someone can clear this up for me faster than I can. I have tried various things, basically my locale is set as:

peter ~ $ locale
LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE=en_GB.UTF-8
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=

I have regenerated locale as root by running 'locale-gen' but still nothing. Running dmenu_run always brings up the interface and as soon as I type something it crashes out saying:

warning: no locale support

I am not doing keymap switching or anything, I have en_GB.utf8 set globally for everything and do not believe I have my locale misconfigured.

I even tried running:

export LC_ALL=en_GB.utf8 

temporarily but this makes no difference

Running:

peter ~ $ env | grep LANG
LANG=en_GB.utf8
GDM_LANG=en_GB.utf8

Finally, I tried running

strace dmenu_run

and I got the following if someone is able to see something obvious or some other environment variable it's picking up from somewhere which could be causing this issue, I would really appreciate a hand here!

Strace output:

peter ~ $ strace dmenu_run
execve("/usr/bin/dmenu_run", ["dmenu_run"], [/* 40 vars */]) = 0
brk(NULL)                               = 0x2049000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("tls/x86_64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/tls/x86_64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/tls/x86_64", 0x7fff2ee26050) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/tls/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/tls", 0x7fff2ee26050) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/x86_64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/x86_64", 0x7fff2ee26050) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/gtk-2.0/modules", 0x7fff2ee26050) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=220617, ...}) = 0
mmap(NULL, 220617, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbf27a33000
close(3)                                = 0
open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000c\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=344904, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbf27a31000
mmap(NULL, 2397280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbf275fd000
mprotect(0x7fbf2763d000, 2097152, PROT_NONE) = 0
mmap(0x7fbf2783d000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40000) = 0x7fbf2783d000
mmap(0x7fbf27845000, 5216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbf27845000
close(3)                                = 0
open("tls/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260u\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=444680, ...}) = 0
mmap(NULL, 2542224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbf27390000
mprotect(0x7fbf273f7000, 2097152, PROT_NONE) = 0
mmap(0x7fbf275f7000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x67000) = 0x7fbf275f7000
close(3)                                = 0
open("tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libdl.so.2", O_RDONLY|O_CLOEXEC)  = -1 ENOENT (No such file or directory)
open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14608, ...}) = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbf2718c000
mprotect(0x7fbf2718e000, 2097152, PROT_NONE) = 0
mmap(0x7fbf2738e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fbf2738e000
close(3)                                = 0
open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY|O_CLOEXEC)   = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\3\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1951744, ...}) = 0
mmap(NULL, 3791152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbf26dee000
mprotect(0x7fbf26f83000, 2093056, PROT_NONE) = 0
mmap(0x7fbf27182000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x194000) = 0x7fbf27182000
mmap(0x7fbf27188000, 14640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbf27188000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbf27a2f000
arch_prctl(ARCH_SET_FS, 0x7fbf27a2f700) = 0
mprotect(0x7fbf27182000, 16384, PROT_READ) = 0
mprotect(0x7fbf2738e000, 4096, PROT_READ) = 0
mprotect(0x7fbf275f7000, 16384, PROT_READ) = 0
mprotect(0x7fbf2783d000, 8192, PROT_READ) = 0
mprotect(0x6bb000, 4096, PROT_READ)     = 0
mprotect(0x7fbf27a69000, 4096, PROT_READ) = 0
munmap(0x7fbf27a33000, 220617)          = 0
open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3
close(3)                                = 0
brk(NULL)                               = 0x2049000
brk(0x206a000)                          = 0x206a000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1669200, ...}) = 0
mmap(NULL, 1669200, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbf27897000
close(3)                                = 0
getuid()                                = 1000
getgid()                                = 100
geteuid()                               = 1000
getegid()                               = 100
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
sysinfo({uptime=140, loads=[6208, 5504, 2048], totalram=16686731264, freeram=15957356544, sharedram=66170880, bufferram=59912192, totalswap=8355049472, freeswap=8355049472, procs=295, totalhigh=0, freehigh=0, mem_unit=1}) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf26e210b0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf26e210b0}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf26e210b0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7fbf26e210b0}, {SIG_DFL, [], SA_RESTORER, 0x7fbf26e210b0}, 8) = 0
uname({sysname="Linux", nodename="firebrand", ...}) = 0
stat("/home/peter", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
getpid()                                = 1259
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=56095, ...}) = 0
read(3, "# GNU libc iconv configuration.\n"..., 4096) = 4096
read(3, "1002//\tJUS_I.B1.002//\nmodule\tJUS"..., 4096) = 4096
read(3, "ISO-IR-110//\t\tISO-8859-4//\nalias"..., 4096) = 4096
read(3, "\t\tISO-8859-14//\nalias\tISO_8859-1"..., 4096) = 4096
read(3, "IC-ES//\nalias\tEBCDICES//\t\tEBCDIC"..., 4096) = 4096
read(3, "DIC-CP-ES//\t\tIBM284//\nalias\tCSIB"..., 4096) = 4096
read(3, "//\nalias\tCSIBM864//\t\tIBM864//\nal"..., 4096) = 4096
read(3, "BM939//\nmodule\tIBM939//\t\tINTERNA"..., 4096) = 4096
read(3, "EUC-CN//\nalias\tCN-GB//\t\t\tEUC-CN/"..., 4096) = 4096
read(3, "T//\nmodule\tISO-2022-CN-EXT//\tINT"..., 4096) = 4096
brk(0x208b000)                          = 0x208b000
read(3, "//\t\tISO_5428//\nalias\tISO_5428:19"..., 4096) = 4096
read(3, "CII-8\t1\n\n#\tfrom\t\t\tto\t\t\tmodule\t\tc"..., 4096) = 4096
read(3, "\tfrom\t\t\tto\t\t\tmodule\t\tcost\nalias\t"..., 4096) = 4096
read(3, "712//\t\tINTERNAL\t\tIBM12712\t\t1\nmod"..., 4096) = 2847
read(3, "", 4096)                       = 0
close(3)                                = 0
getppid()                               = 1257
getpgrp()                               = 1257
rt_sigaction(SIGCHLD, {0x43eff0, [], SA_RESTORER|SA_RESTART, 0x7fbf26e210b0}, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf26e210b0}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=63491, rlim_max=63491}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/usr/bin/dmenu_run", O_RDONLY)    = 3
ioctl(3, TCGETS, 0x7fff2ee26730)        = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "#!/bin/sh\ndmenu_path | dmenu \"$@"..., 80) = 58
lseek(3, 0, SEEK_SET)                   = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
fcntl(255, F_GETFD)                     = -1 EBADF (Bad file descriptor)
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(255, {st_mode=S_IFREG|0755, st_size=58, ...}) = 0
lseek(255, 0, SEEK_CUR)                 = 0
read(255, "#!/bin/sh\ndmenu_path | dmenu \"$@"..., 58) = 58
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fbf27a2f9d0) = 1260
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4)                                = 0
close(4)                                = -1 EBADF (Bad file descriptor)
pipe([4, 5])                            = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fbf27a2f9d0) = 1261
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(3)                                = 0
close(5)                                = 0
close(3)                                = -1 EBADF (Bad file descriptor)
close(5)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fbf27a2f9d0) = 1262
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
read(255, "", 58)                       = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

In case it helps, this is my environment I have set:

peter ~ $ env
XDG_VTNR=7
XDG_SESSION_ID=c2
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/peter
GIO_LAUNCHED_DESKTOP_FILE_PID=1183
TERM=rxvt-unicode-256color
SHELL=/bin/bash
WINDOWID=46137353
GTK_MODULES=canberra-gtk-module
USER=peter
LD_LIBRARY_PATH=:/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
_JAVA_OPTIONS=-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/urxvt.desktop
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
MAIL=/var/spool/mail/peter
DESKTOP_SESSION=openbox
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
GSETTINGS_SCHEMA_DIR=/home/peter/data
LC_COLLATE=en_GB.UTF-8
PWD=/home/peter
XDG_SESSION_TYPE=x11
EDITOR=/usr/bin/vim
LANG=en_GB.utf8
GDM_LANG=en_GB.utf8
GDMSESSION=openbox
COLORFGBG=default;default;8
SHLVL=3
XDG_SEAT=seat0
HOME=/home/peter
XDG_SESSION_DESKTOP=openbox
LOGNAME=peter
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
PROMPT_COMMAND=echo -ne "\033]0;$PWD\007"
BROWSER=/usr/bin/chromium
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
COLORTERM=rxvt-xpm
XAUTHORITY=/home/peter/.Xauthority
_=/usr/bin/env

Thanks,

Peter

Last edited by minimal (2016-11-14 21:17:37)


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#2 2016-11-09 15:20:48

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

"LC_CTYPE=en_GB.UTF-8 dmenu" (notice the dash)

Also ensure en_GB.utf8 actually is in"locale -a" and see
https://bbs.archlinux.org/viewtopic.php?id=217913
https://bbs.archlinux.org/viewtopic.php?id=149198

Offline

#3 2016-11-10 12:02:22

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Thanks seth for the response,
Been spending lots of time looking at my locale settings according to the wiki and getting to closer to resolving or using the workaround specified in one of the threads:

env LC_ALL=en_US.UTF-8 dmenu_run
instead of just dmenu_run

Really not sure what to try next though I notice that
locale output:

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

I uncommented en_US.utf-8 to try to use the workaround but it's still complaining of  'no locale support'

Even setting:

export LANG=en_GB.utf-8

(with the -8 at the end), does not make any difference.

My /etc/locale.conf contains currently:

LANG=en_GB.UTF-8
LC_CTYPE=en_GB.UTF-8
LC_COLLATE=en_GB.UTF-8

Finally,

peter ~ $ dmenu < ~/.cache/dmenu_run
warning: no locale support
Segmentation fault (core dumped)
peter ~ $

Any more ideas where this could be going wrong, or where the environment is picking up
LANG=en_GB.utf8 instead of
LANG=en_GB.utf-8 ?

Thanks a lot!


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#4 2016-11-10 12:08:46

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

I uncommented en_US.utf-8

What's the output of "locale -a"?

Notice that after changes to /etc/locale.gen you'll still have to run "locale-gen" (as root) to "apply" the changes.

Offline

#5 2016-11-10 14:44:37

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Hi, I have re-run as root: locale-gen successfully and rebooted to ensure all takes effect. I have:

peter ~ $ locale -a
C
en_GB.utf8
en_US.utf8
POSIX
peter ~ $

I almost recompiled libx11 from source but since I am not using the bug-affected locale, I decided I may introduce more problems and abandoned this idea.


Not really sure what else to try here.

Last edited by minimal (2016-11-10 14:47:13)


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#6 2016-11-10 16:13:04

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

What about

LC_CTYPE=C dmenu

Offline

#7 2016-11-10 16:30:05

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

How is your C? You could try pursuing this by checking which of the functions called (setlocale or XSupportsLocale) returns false (this is from dmenu.c):

if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
	fputs("warning: no locale support\n", stderr);

Hopefully you can rule out Xorg this way.

Offline

#8 2016-11-11 08:35:44

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Thanks for the replies. I get:

peter ~ $ LC_CTYPE=C dmenu
warning: no locale support

Not really sure here how else to rule out Xorg since I don't believe dmenu runs from console or is that a possibility?

Many thanks for any suggestions here!


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#9 2016-11-11 08:56:06

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

// gcc -o localesupport -lX11 localesupport.c
#include <stdio.h>
#include <locale.h>
#include <X11/Xlib.h>

int main(int c, char **args) {
    printf("locale %s\n", setlocale(LC_CTYPE, "") ? "yup" : "nay");
    printf("Xorg %s\n", XSupportsLocale() ? "yup" : "nay");
}

Offline

#10 2016-11-11 19:07:27

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Thank you very much! I have just learnt how to compile these few lines of C and have the following output:

peter ~/scripts $ la
total 40K
-rwxr-xr-x 1 root  root  1.4K Aug 25 01:15 colortest.sh*
-rwxr-xr-x 1 peter users 8.4K Nov 11 18:48 localesupport*
-rwxr-xr-x 1 peter users  270 Nov 11 18:47 localesupport.c*
-rwxr-xr-x 1 peter users   32 Aug 31 14:50 pragha-start-min.sh*
-rwxr-xr-x 1 root  root   415 Aug 23 22:35 simpler-st.sh*
-rwxrwxrwx 1 peter users  397 Apr  5  2016 st-colors-test.sh*
-rwxr-xr-x 1 root  root   230 Jul 24 23:51 touchpad-toggle.sh*
-rw-r--r-- 1 peter users  312 Aug 29 18:10 youtube-dl_to-mp3.txt
peter ~/scripts $ ./localesupport
locale yup
Xorg nay

So it looks like Xorg is not set up correctly.  Just comparing this to other seemingly identical Arch box where dmenu IS working and the output is:

locale yup
Xorg yup

So that narrows it down to a problem with Xorg!

Some information on the libx11 running on the offending machine:

peter ~/scripts $ p -Qi libx11
[sudo] password for peter: 
Name            : libx11
Version         : 1.6.4-1
Description     : X11 client-side library
Architecture    : x86_64
URL             : http://xorg.freedesktop.org/
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : libxcb  xproto  kbproto
Optional Deps   : None
Required By     : aalib  at-spi2-atk  ffmpeg  gdk-pixbuf2  lib32-libx11  libxext  libxfixes
                  libxkbfile  libxrender  libxt  lightdm  lirc  mesa-vdpau  plank  sdl  sdl2
                  sfml  startup-notification  xbindkeys  xorg-x11perf  xorg-xcmsdb
                  xorg-xcursorgen  xorg-xdpyinfo  xorg-xdriinfo  xorg-xev  xorg-xgamma
                  xorg-xhost  xorg-xinit  xorg-xinput  xorg-xkbutils  xorg-xkill  xorg-xmodmap
                  xorg-xpr  xorg-xprop  xorg-xrandr  xorg-xrdb  xorg-xrefresh  xorg-xsetroot
                  xorg-xvinfo  xorg-xwud  xsel
Optional For    : mtools
Conflicts With  : None
Replaces        : None
Installed Size  : 10.17 MiB
Packager        : Laurent Carlier <lordheavym@gmail.com>
Build Date      : Wed 05 Oct 2016 06:24:11 BST
Install Date    : Fri 28 Oct 2016 22:00:43 BST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

..which is identical to the version running on the other Arch. The only difference is the other (working box) output says:
Validated By   : SHA-256 Sum

I don't see that this would have anything to do with it.

Thanks for the help!


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#11 2016-11-11 20:43:56

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Wild guess: This shall print the environment of the Xorg process.

sudo tr '\0' '\n' < /proc/`pidof Xorg`/environ

It also might matter by which user Xorg is run (root or "you") or the libc (glibc vs. anything else) resp. glibc version.

Offline

#12 2016-11-11 21:42:30

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Correct me if I am wrong but I don't believe Xorg will run as root. I use lightdm display manager and openbox. Here are some details about my environment..

# tr '\0' '\n' < /proc/`pidof Xorg`/environ
PWD=/
SHLVL=0
peter ~ $ cat ~/.xinitrc
#!/bin/sh
#

if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
    done
    unset f
fi

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

if [ -s ~/.Xmodmap ]; then
    xmodmap ~/.Xmodmap
fi

exec dbus-launch --exit-with-session openbox-session
peter ~ $ p -Qi glibc
Name            : glibc
Version         : 2.24-2
$ uname -a
Linux firebrand 4.8.6-2-ck #1 SMP PREEMPT Fri Nov 4 22:25:35 EDT 2016 x86_64 GNU/Linux
$ env
XDG_VTNR=7
XDG_SESSION_ID=c2
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/peter
GIO_LAUNCHED_DESKTOP_FILE_PID=1061
TERM=rxvt-unicode-256color
SHELL=/bin/bash
WINDOWID=6291465
GTK_MODULES=canberra-gtk-module
XDG_SESSION_CLASS=user
USER=peter
LD_LIBRARY_PATH=:/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
_JAVA_OPTIONS=-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/urxvt.desktop
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
MAIL=/var/spool/mail/peter
DESKTOP_SESSION=openbox
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
GSETTINGS_SCHEMA_DIR=/home/peter/data
LC_COLLATE=en_GB.UTF-8
PWD=/home/peter
XDG_SESSION_TYPE=x11
EDITOR=/usr/bin/vim
LANG=en_GB.utf8
GDM_LANG=en_GB.utf8
GDMSESSION=openbox
COLORFGBG=default;default;8
SHLVL=3
XDG_SEAT=seat0
HOME=/home/peter
XDG_SESSION_DESKTOP=openbox
LOGNAME=peter
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
LC_CTYPE=en_GB.UTF-8
PROMPT_COMMAND=echo -ne "\033]0;$PWD\007"
BROWSER=/usr/bin/chromium
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
COLORTERM=rxvt-xpm
XAUTHORITY=/home/peter/.Xauthority
_=/usr/bin/env

I hope this is relevant, can't think where else to check.


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#13 2016-11-12 14:14:53

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

I notice

GDM_LANG=en_GB.utf8

In my environment which would seem could be changing my environment from:

LANG=en_GB.UTF-8

which I have set in /etc/locale.conf I wonder if I need this gdm setting since I am not using gdm at all and whether removing it would have any effect.  The only thing is I cannot find where this is set. 

Any other ideas welcome!


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#14 2016-11-12 14:17:50

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Another indication X is definitely to blame here. I installed xterm and when running, it opens fine, but on cmd line get:

Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
xterm: Failed to open input method

|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#15 2016-11-12 16:40:08

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

X can and will run as root unless you use startx (and even then - because of a temporary bug iirc)

GDM_LANG will hopefully do nothing since you're using lightdm - but wherever "LANG=en_GB.utf8" stems from, it's "wrong" (though *should* be aliased)

~/.xinitrc will afaik not be invoked by lightdm (but it starts sessions in /usr/share/xsessions/) - however do not use dbus-launch any longer.

What's kind of odd is that LANG (all /etc/locale.conf) isn't picked up by the Xorg process - compare that to the working one?

Offline

#16 2016-11-12 22:08:26

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

I have done a bit of a tidy up and errors remain with xterm,dmenu_run commands.

This is how my environment stands at the moment:

XDG_VTNR=7
XDG_SESSION_ID=c2
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/peter
GIO_LAUNCHED_DESKTOP_FILE_PID=1174
TERM=rxvt-unicode-256color
SHELL=/bin/bash
WINDOWID=46137353
GTK_MODULES=canberra-gtk-module
XDG_SESSION_CLASS=user
USER=peter
LD_LIBRARY_PATH=:/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
_JAVA_OPTIONS=-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/urxvt.desktop
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
MAIL=/var/spool/mail/peter
DESKTOP_SESSION=openbox
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
GSETTINGS_SCHEMA_DIR=/home/peter/data
LC_COLLATE=en_GB.UTF-8
PWD=/home/peter
XDG_SESSION_TYPE=x11
EDITOR=/usr/bin/vim
LANG=en_GB.utf8
GDM_LANG=en_GB.utf8
GDMSESSION=openbox
COLORFGBG=default
SHLVL=3
XDG_SEAT=seat0
HOME=/home/peter
XDG_SESSION_DESKTOP=openbox
LOGNAME=peter
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
LC_CTYPE=en_GB.UTF-8
PROMPT_COMMAND=echo -ne "\033]0;$PWD\007"
BROWSER=/usr/bin/chromium
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
COLORTERM=rxvt-xpm
XAUTHORITY=/home/peter/.Xauthority
_=/usr/bin/env

and locale -a:

C
en_GB.utf8
POSIX

and locale:

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

Damn, I notice something is still changing LANG= and it looks to be ~/.dmrc which has:

[Desktop]
Session=openbox
Language=en_GB.utf8

Last edited by minimal (2016-11-12 22:44:13)


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#17 2016-11-13 08:29:36

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

skip lightdm, use startx - does dmenu run from there?

Offline

#18 2016-11-13 13:56:55

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Just tried starting as init 3, logged in and typed startx.

locale looks fine (en_GB.UTF-8 across the board now) but still no good.  Thought it could it simply be Xlib so downgraded to libx11 to previous 1.6.3 but no good either.


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#19 2016-11-13 15:02:10

seth
Member
Registered: 2012-09-03
Posts: 50,957

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

strace dmenu 2>&1 | grep -iE '(en_GB|locale)'

Offline

#20 2016-11-13 18:52:20

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

Thanks very much for your efforts seth!

peter ~ $ strace dmenu 2>&1 | grep -iE '(en_GB|locale)'
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "warning: no locale support\n", 27warning: no locale support
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = 4
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)

ad the contents of that directory with permissions..

peter /usr/share/X11/locale $ la
total 212K
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 armscii-8/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 C/
drwxr-xr-x 2 root root 4.0K Nov 13 13:54 en_US.UTF-8/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 georgian-academy/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 georgian-ps/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 ibm-cp1133/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iscii-dev/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 isiri-3342/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-1/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-10/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-11/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-13/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-14/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-15/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-2/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-3/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-4/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-5/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-6/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-7/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-8/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-9/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 iso8859-9e/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 koi8-c/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 koi8-r/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 koi8-u/
-rw-r--r-- 1 root root  80K Oct  5 06:24 locale.alias
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 microsoft-cp1251/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 microsoft-cp1255/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 microsoft-cp1256/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 mulelao-1/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 nokhchi-1/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 tatar-cyr/
drwxr-xr-x 2 root root 4.0K Oct  8 18:58 tscii-0/

Last edited by minimal (2016-11-13 18:54:14)


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#21 2016-11-13 19:19:48

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

$ pacman -Qo /usr/share/X11/locale/locale.dir
/usr/share/X11/locale/locale.dir is owned by libx11 1.6.4-1

minimal what is the output of

$ pacman -Qkk libx11

Offline

#22 2016-11-14 21:08:17

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

For some reason this file is missing:

$ pacman -Qo /usr/share/X11/locale/locale.dir
error: failed to read file '/usr/share/X11/locale/locale.dir': No such file or directory

I think that's the crux of it. libx11 seems fine and is at the latest version:

$ pacman -Qkk libx11
libx11: 1260 total files, 0 altered file

EDIT: I have just tried this manoever:

$ sudo cp /home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/* /usr/share/X11/locale/
[sudo] password for peter: 
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/am_ET.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/armscii-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/C'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/cs_CZ.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/el_GR.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/en_US.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/fi_FI.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/georgian-academy'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/georgian-ps'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ibm-cp1133'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iscii-dev'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/isiri-3342'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-1'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-10'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-11'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-13'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-14'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-15'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-2'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-3'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-4'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-5'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-6'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-7'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-9'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/iso8859-9e'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ja'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ja.JIS'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ja_JP.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ja.SJIS'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/km_KH.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ko'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/koi8-c'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/koi8-r'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/koi8-u'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ko_KR.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/microsoft-cp1251'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/microsoft-cp1255'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/microsoft-cp1256'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/mulelao-1'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/nokhchi-1'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/pt_BR.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/pt_PT.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/ru_RU.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/sr_CS.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/tatar-cyr'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/th_TH'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/th_TH.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/tscii-0'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/vi_VN.tcvn'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/vi_VN.viscii'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_CN'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_CN.gb18030'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_CN.gbk'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_CN.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_HK.big5'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_HK.big5hkscs'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_HK.UTF-8'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_TW'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_TW.big5'
cp: omitting directory '/home/peter/abs/libx11/pkg/libx11/usr/share/X11/locale/zh_TW.UTF-8'

I was sort of prepared from abs when I was considering installing it from source.

This seems to have fixed it!! Thanks all for your help this last week for this and your persistence in getting me to find out what was wrong! In hindsight, it could be possible that bleachbit has deleted a few too many files by mistake, I can only think that is what has happened and regenerating locale has not restored the missing files from /usr/share/X11/locale/

Also, I think this is completely fixed since no errors at all anywhere and Xorg is in good shape now, as well as running dmenu_run and xterm:

$ ~/scripts/localesupport
locale yup
Xorg yup

Last edited by minimal (2016-11-14 21:15:32)


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#23 2016-11-14 21:19:37

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

For a moment there I thought there was still something missing, could not mark this thread as SOLVED. It seems I hit the character limit for the Subject line..


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

#24 2016-11-14 21:22:53

seth
Member
Registered: 2012-09-03
Posts: 50,957

Offline

#25 2016-11-14 21:30:39

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Re: dmenu warning: no locale support (even when locale is set) [SOLVED]

OK noted thanks very much seth, I have now removed it from my system!


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

Board footer

Powered by FluxBB