matlinuxer2 / ucimf

Automatically exported from code.google.com/p/ucimf
9 stars 3 forks source link

按 "ctrl-space" 关闭输入法时,会显示两个多余的字符 #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
系统:Ubuntu 10.04
安装及设置:
sudo add-apt-repository ppa:ucimf-dev/ppa
sudo apt-get install libucimf0 fbterm-ucimf ucimf-openvanilla 
openvanilla-imgeneric openvanilla-imgeneric-data-zh-cn fbterm
sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm
启动:
LC_CTYPE=zh_CN.UTF-8 fbterm -i fbterm_ucimf
问题:
可以正常输入中文,但每按一次 Ctrl + space,屏幕上都会出现 
"132" 这样的字符。
log 文件:见附件。

Original issue reported on code.google.com by zhangson...@gmail.com on 18 Sep 2010 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
这是 Debian/Ubuntu 里 fbterm 包的 bug,不是 ucimf 
的问题。可以考虑尝试卸载系统中的 fbterm 
然后手工编译安装。

Original comment by happyaro...@gmail.com on 18 Sep 2010 at 9:06

GoogleCodeExporter commented 9 years ago
http://packages.qa.debian.org/f/fbterm.html

這個 bug 在 debian 的 fbterm 1.6-2 已經修復。目前 ubuntu 
還是未更新的 1.6-1 的版本,預計之後會再跟著更新。

Original comment by MatLinuxer2 on 14 Oct 2010 at 12:59

GoogleCodeExporter commented 9 years ago
非常感谢您的说明。
我编译了最新的 fbterm 1.7,这个 bug 果然已经被修复了。
不过有了新问题,当按 "ctrl-space" 
关闭输入法时,会显示两个多余的字符。
log 文件:

[DEBUG]:IMF Modules scan path: /usr/lib/ucimf/ 
[DEBUG]:OVIMF starting 
[DEBUG]:OVIMF Module Dir: /usr/lib/openvanilla/ 
[DEBUG]:OVIMF Module Dir2: /usr/share/openvanilla/ 
[DEBUG]:OVIMF Module Dir3: /usr/lib/openvanilla/ 
[DEBUG]:Found *.cin search path: /home/midomi/.openvanilla/OVIMGeneric/ 
[DEBUG]:Found *.cin search path: /usr/share/openvanilla//OVIMGeneric/ 
[DEBUG]:OVIMGeneric.so
[DEBUG]:loading .so: OVIMGeneric.so 
[DEBUG]:Set *.cin search path to: /home/midomi/.openvanilla/OVIMGeneric/ 
[DEBUG]:OVIMGeneric.la
[DEBUG]:OVIMGeneric.a
[DEBUG]:..
[DEBUG]:.
[DEBUG]:  Load Module[ 1 ]: openvanilla.so 
[DEBUG]:lt_dlopen dummy.so failed
[DEBUG]:  Load Module[ 2 ]: dummy.so 
[DEBUG]:UCIMF core intialized.

Original comment by zhangson...@gmail.com on 17 Oct 2010 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by MatLinuxer2 on 17 Oct 2010 at 4:36

GoogleCodeExporter commented 9 years ago

Original comment by MatLinuxer2 on 17 Oct 2010 at 4:37

GoogleCodeExporter commented 9 years ago
相關連結: http://code.google.com/p/fbterm/issues/detail?id=50

Original comment by MatLinuxer2 on 10 Feb 2011 at 4:25

GoogleCodeExporter commented 9 years ago
Issue 79 has been merged into this issue.

Original comment by MatLinuxer2 on 10 Feb 2011 at 4:25

cjacker commented 5 years ago

here is the patch, and I expained the root cause of this issue in comment: https://github.com/cjacker/patches/blob/master/fbterm-ctrl-space-toggle-im-two-weird-char.patch

the implementation of toggleActive and setRawMode in fbterm is not so good, rewriting this two functions should be a better way to fix it.