I'm ssh'd into my iPad 2,1 running iOS 8.1. I'm trying to do a find for "PP越狱":
fermat-ipad:/ root# find /var/mobile/ -iname XXX
When I enter the Chinese name for XXX, I get:
(arg: 1) find /var/mobile/ -iname PP
And the Chinese characters are dropped. I had the same problem when switching to the Bash shell, too.
The work around seems to be to set LC_TYPE
. However:
fermat-ipad:/ root# LC_CTYPE=en_US.UTF-8
-sh: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
How does one perform a find
in the shell over ssh when the search term includes Chinese characters?
Aucun commentaire:
Enregistrer un commentaire