mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-24 10:18:17 +02:00
The description from bugzilla bug 7417¹ is:
We've been shipping this patch for some time in Debian now. The
problem description from the patch header is reproduced below. You
may want to note the licensing issue mentioned below, but we've been
shipping it because the method by which this particular patch was
generated and updated was also given below.
This patch by Denis Barbier.
The X11 protocol states that Unicode keysyms are in the range
0x01000100 - 0x0110FFFF. If the result of composing characters is a
Unicode codepoint, X returns the corresponding Unicode keysym, which
is its Unicode codepoint augmented by 0x01000000. Latin-1
characters must not appear with their Unicode codepoints in compose
files, otherwise the returned composed character lies in the range
0x01000000 - 0x010000FF which is not valid.
There are two solutions: either fix composing routines to return
0xZZ instead of 0x010000ZZ (where Z is an hexadecimal digit), or
replace U00ZZ by their corresponding keysyms in compose files. The
latter is more logical and less error prone, so compose files will
be patched. Many applications accept these invalid Unicode keysyms,
but few of them don't, most notably xemacs. Only UTF-8 locales are
affected.
This has been fixed very recently in XFree86 CVS (but not xorg), but
for licensing reasons, this patch is not grabbed. Instead automatic
conversion is performed by:
sed -e '/XK_LATIN1/,/XK_LATIN1/!d' /usr/include/X11/keysymdef.h \
| grep -v deprecated | grep 0x0 \
| sed -e 's/0x0/U0/' -e 's/XK_//' \
| awk '{ printf "s/\\b%s\\b/%s/ig\n", $3, $2; }' > sedfile
for f in nls/*.UTF-8/Compose.pre
do
sed -f sedfile $f > $f.tmp && mv $f.tmp $f
done
[I edited the quoted script to update it for the current location of
the installed keysymdef.h and the current layout of the libX11
repo. -JimC]
I applied the script, not the patch attached to the bugreport.
1] https://bugs.freedesktop.org/show_bug.cgi?id=7417
|
||
|---|---|---|
| .. | ||
| armscii-8 | ||
| C | ||
| el_GR.UTF-8 | ||
| en_US.UTF-8 | ||
| georgian-academy | ||
| georgian-ps | ||
| ibm-cp1133 | ||
| iscii-dev | ||
| isiri-3342 | ||
| iso8859-1 | ||
| iso8859-2 | ||
| iso8859-3 | ||
| iso8859-4 | ||
| iso8859-5 | ||
| iso8859-6 | ||
| iso8859-7 | ||
| iso8859-8 | ||
| iso8859-9 | ||
| iso8859-9e | ||
| iso8859-10 | ||
| iso8859-11 | ||
| iso8859-13 | ||
| iso8859-14 | ||
| iso8859-15 | ||
| ja | ||
| ja.JIS | ||
| ja.S90 | ||
| ja.SJIS | ||
| ja.U90 | ||
| ja_JP.UTF-8 | ||
| ko | ||
| ko_KR.UTF-8 | ||
| koi8-c | ||
| koi8-r | ||
| koi8-u | ||
| microsoft-cp1251 | ||
| microsoft-cp1255 | ||
| microsoft-cp1256 | ||
| mulelao-1 | ||
| nokhchi-1 | ||
| pt_BR.UTF-8 | ||
| tatar-cyr | ||
| th_TH | ||
| th_TH.UTF-8 | ||
| tscii-0 | ||
| vi_VN.tcvn | ||
| vi_VN.viscii | ||
| zh_CN | ||
| zh_CN.gb18030 | ||
| zh_CN.gbk | ||
| zh_CN.UTF-8 | ||
| zh_HK.big5 | ||
| zh_HK.big5hkscs | ||
| zh_HK.UTF-8 | ||
| zh_TW | ||
| zh_TW.big5 | ||
| zh_TW.UTF-8 | ||
| .gitignore | ||
| compose.dir.pre | ||
| locale.alias.pre | ||
| locale.dir.pre | ||
| localerules.in | ||
| Makefile.am | ||