busybox for openwrt 12.09 rc1(ls支持中文 )

openwrt ls命是busybox提供的,中文通通显示为???,google了一些资料,重新配置编译了一下busybox,中文能正常显示了。

先搭建好交叉编译环境(不在本文讨论范围内),我用的openwrt 12.09 rc1 的源码路由器是WR703N。进入源码目录make menuconfig,进入Base System -> Busybox -> Busybox Settings -> General Configuration 配置页面,按下面所示配置busybox(195101的值是根据参考文章中的十六制值得来的)保存配置。

[*] Support Unicode │ │  [ ] Check $LANG environment variable │ │  (195101) Character code to substitute unprintable characters with │ │  (195101) Range of supported Unicode characters │ │  [*] Allow zero-width Unicode characters on output │ │  [*] Allow wide Unicode characters on output │ │  [*] Bidirectional character-aware line input │ │  [*] In bidi input, support non-ASCII neutral chars too │ │  [*] Make it possible to enter sequences of chars which are not Unicode

然后执行make package/busybox/compile,编译完成后在build_dir/target-mips_r2_uClibc-0.9.33.2/busybox-1.19.4/ 找到新生成的busybox可执行文件,替换掉openwrt的/bin/busybox文件即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值