菜菜博士

欢迎来到 菜菜博士 在网络的家



in-kernel UNICODE font support for fbcon


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
12 条评论
# 1: December 4, 2010, 11:16 pm, 路人A said:

支持2.6.37不
# 2: December 8, 2010, 9:31 pm, microcai said:

当然支持 .....
# 3: December 11, 2010, 4:23 pm, jarryson said:

编译2.6.36.2内核出错:

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]: *** 正在等待未完成的任务....
# 4: December 11, 2010, 4:45 pm, jarryson said:

期待回复,很想试试看这个补丁。补丁可以正常打上,config里面也选了cjk那个选项。看代码这里的utf8_c确实是凭空出现的,应该是有问题吧
# 5: December 12, 2010, 1:59 am, microcai said:

恩。我继续修改。近期我会托管到 git.kernel.org 上的。如果申请不下来,就在我自己的 VPS 上
# 6: December 13, 2010, 8:36 pm, jarryson said:

有更新没有。不知道什么时候能用上
# 7: December 14, 2010, 11:03 am, microcai said:

别着急 ... 马上 ... 最近很多别的事情耽误了 ......
# 8: December 16, 2010, 9:18 pm, microcai said:

额,毕业设计太忙了,都没时间搞 ....
马上要开题答辩了 囧,各位对不住了啊
# 9: January 7, 2011, 11:55 pm, microcai said:

wow 2.6.37 内核变化很大,原先的补丁打不上啦 ......

呵呵,看来用不上了
# 10: January 9, 2011, 3:21 pm, microcai said:

git://minilab.tk/linux-2.6.git
2.6.37-utf-8 分支上就是你们要的 2.6.37 的 patch。
不再产 patch 了。直接 git 了。
要的人自己 fetch 吧。

注意,为节约我的 VPS 流量和空间,使用了浅克隆。

所以先到 kernel.org clone 后,再将我的 git 仓库添加进去, fetch 下来,做 merge 就可以了。

# 11: January 13, 2011, 11:50 am, microcai said:

呵呵, VPS 托管的 git 仓库到此为止。
现在已经托管到 http://repo.or.cz/w/linux-2.6/cjktty.git
了。更加符合 linux kernel 的风格。 :)
# 12: February 21, 2011, 1:08 pm, microcai said:

好了,已经修复了。
可以
添加评论

昵称 *

E-mail