[Debian-zh-dev] Bug#805419: rxvt-ml: krxvt and crxvt-{big5, gb} were built without CJK support
Anthony Fok
foka at debian.org
Tue Nov 17 23:23:38 UTC 2015
Package: rxvt-ml
Version: 1:2.7.10-6
Severity: important
Tags: patch l10n
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello,
While trying to use a terminal program that can display
Chinese characters in zh_CN.GB2312 for testing my pending fixes
to the zh-autoconvert package, I installed rxvt-ml and tried
to use the old trusty crxvt-gb, but could not get it to display
any Chinese. Looking deeper, it is even missing the -fm option
that can be used to choose a multibyte CJK font.
I then tried installing mrxvt-cjk, which works fortunately.
"mrxvt-cjk -h" shows the following:
Mrxvt v0.5.4
Options: fade,XIM,multichar_languages,scrollbars=xterm,Resources
But the current "crxvt-gb -h" instead shows:
Rxvt v2.7.10 - released: 26 MARCH 2003
Options: XPM,transparent,utmp,menubar,XIM,scrollbars=rxvt,graphics,XGetDefaults
Note the absence of "multichar_languages".
An examination of the rxvt source package reveals that upstream has
changed its ./configure options. The old --enable-{kanji,gb,big5}
options were replaced with --enable-languages and the optional
- --with-encoding options some time in the 2.7.x release.
After applying the attached fix to debian/rules, I finally see that
beautiful "multichar_languages" string:
Rxvt v2.7.10 - released: 26 MARCH 2003
Options: XPM,transparent,utmp,menubar,XIM,multichar_languages,scrollbars=rxvt,graphics,XGetDefaults
And yes, it works! "LANG=zh_CN.GB2312 crxvt-gb" now displays Chinese
characters correctly, and ditto for "LANG=zh_TW.BIG5 crxvt-big5"
and "LANG=ja_JP.EUC-JP krxvt".
Many thanks!
Anthony
- --- rxvt-2.7.10~/debian/rules 2014-06-23 15:47:53.000000000 -0600
+++ rxvt-2.7.10/debian/rules 2015-11-17 15:31:41.712863538 -0700
@@ -80,25 +80,25 @@
mv src/rxvt src/rxvt-xpm
$(MAKE) -C src clean
- - ./configure $(CFG_XPM) --enable-kanji --disable-big5 --disable-gb --disable-greek
+ ./configure $(CFG_XPM) --enable-languages --with-encoding=eucj
echo "#define PTYS_ARE_GETPT 1" >> config.h
$(MAKE) $(MAKEFLAGS) $(CROSS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' rxvt
mv src/rxvt src/krxvt
$(MAKE) -C src clean
- - ./configure $(CFG_XPM) --disable-kanji --enable-big5 --disable-gb --disable-greek
+ ./configure $(CFG_XPM) --enable-languages --with-encoding=big5
echo "#define PTYS_ARE_GETPT 1" >> config.h
$(MAKE) $(MAKEFLAGS) $(CROSS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' rxvt
mv src/rxvt src/crxvt-big5
$(MAKE) -C src clean
- - ./configure $(CFG_XPM) --disable-kanji --disable-big5 --enable-gb --disable-greek
+ ./configure $(CFG_XPM) --enable-languages --with-encoding=gb
echo "#define PTYS_ARE_GETPT 1" >> config.h
$(MAKE) $(MAKEFLAGS) $(CROSS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' rxvt
mv src/rxvt src/crxvt-gb
$(MAKE) -C src clean
- - ./configure $(CFG_XPM) --disable-kanji --disable-big5 --disable-gb --enable-greek
+ ./configure $(CFG_XPM) --enable-greek
echo "#define PTYS_ARE_GETPT 1" >> config.h
$(MAKE) $(MAKEFLAGS) $(CROSS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' rxvt
mv src/rxvt src/grxvt
- -- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages rxvt-ml depends on:
ii libc6 2.19-22
ii libx11-6 2:1.6.3-1
ii libxpm4 1:3.5.11-1+b1
Versions of packages rxvt-ml recommends:
ii rxvt 1:2.7.10-6
Versions of packages rxvt-ml suggests:
pn xcin <none>
ii xfonts-intl-chinese 1.2.1-10
pn xfonts-intl-european <none>
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJWS7btAAoJEOolALQSxZrPU5UP+wf63fFrcaK7s33TWq0DUCQ/
W8/ZQVyygdz/935KGbqNykk5v9n9mc2SsulE791ycvOJqquaBXxR32ahd9BCDMbK
7Jq2LFVhCUwhUzOV6ju7h02Luc+Zzvjxo2jpVTsiZMuyKZdIX5lQS/37RGOKdinI
pJayMjkjt5wPI1UzhurjkXl/+Nrhka34NGnCLEVyesdSc821pWGiEDM+YbMhDdEa
qcpiXdu7TULfBwKOWbUgJa9OiKPTRABXF7AKMJ04+0xQmP09rhb1+RlUpY2EU1Fl
LwZOTtsIJEPvBfakDub87rXWRLwnQj4SmqGY9Qac7Iy9EBe4n/SP7NXRozfqtHUH
FQ/qcmSGdRnnjkw7I0IJLWFGqww3+wsSntsdLF5jiJ+1N7N+joQKEAXWNgQxb4BB
NpqdcD5dzh+FtzJN/JWZzYoHTP0ke6CTbkHNy4PFGFB2dhfxk5ZiNTaep3QTopIq
w6lU//t76RY6R1fK2KQbwyEM7GPE3vcBNdpKWlQcdWdZQK3ymQFaFSPYvour4TBw
oQKc1dllDuNlY6r9W2cpvSv4xvD24qWW1/2SXOHNd6Eq9WfLVQlityBlI2tTyV7T
zeL8WJIJzdrQbt3RL/nfXjgjw0JlpClxFkZOx+gEZNy4hImata49ZuU6ObtggysL
d7JRAO3GMuyAHCvYxfHM
=62Os
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rxvt-ml-enable-languages-for-cjk.patch
Type: text/x-diff
Size: 1535 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/chinese-developers/attachments/20151117/985b3757/attachment.patch>
More information about the Chinese-developers
mailing list