Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1456104
  • 博文数量: 267
  • 博客积分: 3010
  • 博客等级: 少校
  • 技术积分: 3089
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-05 17:09
个人简介

尊天命,尽人事

文章分类

全部博文(267)

文章存档

2017年(6)

2015年(4)

2014年(27)

2013年(52)

2012年(59)

2011年(120)

分类: LINUX

2012-07-05 16:06:08

a.在busybox 中添加 locale support 支持
 Busybox Settings  --->    
     General Configuration  --->    
[*] Enable locale support (system needs locale for this to work)                   
[*] Support Unicode 
[*]   Use libc routines for Unicode (else uses internal ones)
 

b.修改busybox源码目录下的./libbb/printable_string.c
先找到这样一段:
  if (c < ' ')
  break;
    if (c >= 0x7f)
   break;
  s++;

注释掉某两行(34,35行):
/* if (c >= 0x7f) */
/* break; */

然后找这样一段(48行):
    unsigned char c = *d;
    if (c == '\0')
     break;
   if (c < ' ' || c >= 0x7f)
     *d = '?';
    d++;

把 if (c < ' ' || c >= 0x7f)  改成   if (c < ' ')  

c.在系统文件的 /usr/lib 目录下 添加 gconv (字符转换)目录(从PC上复制过来(/usrlib/gconv/))
d.设置系统的 LANG 为 zh_CN.UTF-8
e. 挂载U 盘时指定字符编码
 mount -t vfat -o codepage=936,iocharset=utf8  /dev/sda1 /mnt
f. 内核配置
设置 FAT 的默认 codepage 为 936,默认iocharset 为utf8
 
设置默认语言支持为 cp936(即中文),添加支持的字符集,GB2312,UTF-8
阅读(2431) | 评论(0) | 转发(0) |
0

上一篇:解CA过程

下一篇:mpeg4 中I帧查找

给主人留下些什么吧!~~