将编译openwrt环境中的locale命令复制到路由上:
scp staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc/bin/locale root@192.168.1.1:/usr/local/bin/
在任一linux机器上将生成的utf8编码复制到路由上:
scp /usr/lib/locale/locale-archive 192.168.1.1:/lib/locale/
scp -r /usr/lib/locale/C.UTF-8/ 192.168.1.1:/lib/locale/
输入中文:
cat /root/.inputrc
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on
也可通过以下方法在openwrt路由上生成语言编码,占用内存大,小内存路由会kill。
https://github.com/openwrt/packages/issues/2900
标签:none