I first got this patch from
内核补丁:字符终端显示UTF-8字符串
but , there is some problems ....
1) why not extending kernel VGA font to support UNICODE?
2) why so many duplicated code ? too many copy&past, Linus
won't take this patch
3) Why all char > 127 should be double-weight ?
4) I need to use setfont to set UNICODE font, with this patch,
I can't. So , I made some changes ...
to eliminate all problems above.
so ,here is the git repo
webgit view
http://repo.or.cz/w/linux-2.6/cjktty.git
git clone URL :
git://repo.or.cz/linux-2.6/cjktty.git
http://repo.or.cz/r/linux-2.6/cjktty.git
此文的引用地址:
UTF-8 http://microcai.gsalex.net/trackback.php?id=15&encode=utf-8
drivers/video/console/fbcon_cw.c: 在函数‘cw_putcs_aligned’中:
drivers/video/console/fbcon_cw.c:96:84: 错误:‘utf8_c’未声明(在此函数内第一次使用)
drivers/video/console/fbcon_cw.c:96:84: 附注:每个未声明的标识符在其出现的函数内只报告一次
drivers/video/console/fbcon_cw.c: 在函数‘cw_cursor’中:
drivers/video/console/fbcon_cw.c:249:22: 错误:‘s’未声明(在此函数内第一次使用)
drivers/video/console/fbcon_cw.c:222:6: 警告:未使用的变量‘c_extra’
make[3]: *** [drivers/video/console/fbcon_cw.o] 错误 1
make[3]: *** 正在等待未完成的任务....
CC [M] drivers/usb/storage/onetouch.o
CC [M] drivers/usb/storage/sddr09.o
drivers/video/console/fbcon_ud.c: 在函数‘ud_cursor’中:
drivers/video/console/fbcon_ud.c:308:22: 错误:‘s’未声明(在此函数内第一次使用)
drivers/video/console/fbcon_ud.c:308:22: 附注:每个未声明的标识符在其出现的函数内只报告一次
drivers/video/console/fbcon_ud.c:279:6: 警告:未使用的变量‘c_extra’
make[3]: *** [drivers/video/console/fbcon_ud.o] 错误 1
make[2]: *** [drivers/video/console] 错误 2
make[1]: *** [drivers/video] 错误 2
make[1]: *** 正在等待未完成的任务....
马上要开题答辩了 囧,各位对不住了啊
呵呵,看来用不上了
2.6.37-utf-8 分支上就是你们要的 2.6.37 的 patch。
不再产 patch 了。直接 git 了。
要的人自己 fetch 吧。
注意,为节约我的 VPS 流量和空间,使用了浅克隆。
所以先到 kernel.org clone 后,再将我的 git 仓库添加进去, fetch 下来,做 merge 就可以了。
现在已经托管到 http://repo.or.cz/w/linux-2.6/cjktty.git
了。更加符合 linux kernel 的风格。 :)
可以