2008-07-03 22:38:33     How to let msh shell to support chinese filename operation

2008-07-03 22:38:33     How to let msh shell to support chinese filename operation

everest zhang (CHINA)

Message: 58299   

Hi,

     I want to know how to let msh shell to support chinese filename operation.

     My current Linux version 2.6.16.11.ADI-2006R1, busybox version is v1.00. If the higher version of busybox's msh shell can support chinese operation, I want to know whether it is difficult to port to my current uClinux kernel.

     Tks.

QuoteReplyEditDelete

2008-07-03 23:03:43     Re: How to let msh shell to support chinese filename operation

Mike Frysinger (UNITED STATES)

Message: 58302   

no version of msh supports 8bit characters.  you can find some hacks in svn so that it supports 8bit characters, but it'll break whitespace quoting ...

QuoteReplyEditDelete

2008-07-03 23:44:35     Re: How to let msh shell to support chinese filename operation

everest zhang (CHINA)

Message: 58310   

Thank you Mike. Would you please tell me how to get the hacks?

QuoteReplyEditDelete

2008-07-04 00:27:00     Re: How to let msh shell to support chinese filename operation

Yi Li (CHINA)

Message: 58311   

If you are using 2008R1 svn:

goto:  /2008r1/uclinux-dist/user/busybox/shell

svn log:

r5745 | vapier | 2007-11-17 11:50:11 +0800 (Sat, 17 Nov 2007) | 1 line

[#3433] msh is not 8bit safe, so revert the workaround for people attempting to use UTF8 characters

r5517 | adamliyi | 2007-08-03 12:28:56 +0800 (Fri, 03 Aug 2007) | 3 lines

fix bug [#3433]. workaround in msh.c to make shell treat chinese

character command argument correctly.

you can use "svn diff" to see the patch.

QuoteReplyEditDelete

2008-07-04 02:34:03     Re: How to let msh shell to support chinese filename operation

everest zhang (CHINA)

Message: 58314   

It's great! Port successfully. Thank Yi Li for your help so much.

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.