libxkbcommon/xkbcommon
Ran Benita f468f0b243 xkbcommon-compose.h: change recommended locale fallback code to treat empty string same as unset
The previous code would cause failures to find the Compose file if one
of the environment variables LC_ALL, LC_CTYPE or LANG are set to the
empty string.

The description of the fallback procedure in loclale(7) talks about
"non-null environment variable"; I interpreted this to mean the
environment variable is unset, but it actually means unset or empty (I
verified this by looking at what glibc and musl do).

A recent bug in systemd https://github.com/systemd/systemd/issues/6407
exposed this issue. It causes these these variables to be set to the
empty string in TTY sessions.

Reported by "doodoo" in https://bbs.archlinux.org/viewtopic.php?id=228658

Signed-off-by: Ran Benita <ran234@gmail.com>
2017-08-13 18:03:57 +03:00
..
xkbcommon-compat.h api: deprecate XKB_MAP_COMPILE_PLACEHOLDER, and use KEYMAP instead of MAP 2014-02-08 16:40:20 +02:00
xkbcommon-compose.h xkbcommon-compose.h: change recommended locale fallback code to treat empty string same as unset 2017-08-13 18:03:57 +03:00
xkbcommon-keysyms.h build: rewrite the update-keysyms sed script in python 2017-07-31 15:55:48 +03:00
xkbcommon-names.h Add a constant for NumLock 2014-01-11 17:29:02 +02:00
xkbcommon-x11.h x11, doc: add note about Key{Press,Release}->state field 2014-09-22 11:54:04 +03:00
xkbcommon.h doc: note that XKB_KEYSYM_CASE_INSENSITIVE does C folding only 2016-12-03 00:02:57 +02:00