積丹尼 Dan Jacobson <[email protected]> writes: Hi Dan,
> On > https://android.stackexchange.com/questions/226638/how-to-use-multibyte-file-names-in-adb-shell?noredirect=1#comment295972_226638 > which I need 50 points to comment on, I see: > It doesn't work. echo x | sed -re s/x/\x01\xF3\x08/g results in > x01xF3x08 – Michael Albinus > Odd, don't you need to quote: \\ or '\'? It doesn't matter: --8<---------------cut here---------------start------------->8--- zeroflte:/ $ echo x | sed -re s/x/\x01\xF3\x08/g x01xF3x08 zeroflte:/ $ echo x | sed -re 's/x/\x01\xF3\x08/g' x01xF3x08 zeroflte:/ $ echo x | sed -re s/x/\\x01\\xF3\\x08/g x01xF3x08 zeroflte:/ $ echo x | sed -re 's/x/\\x01\\xF3\\x08/g' \x01\xF3\x08 --8<---------------cut here---------------end--------------->8--- However, meanwhile I've implemented a workaround. If a command contains a multibyte char, I don't evaluate it in the interactive adb shell. Instead, I call from my local shell "adb shell COMMAND". This seems to work. You might try the recent master in Emacs or Tramp git. Best regards, Michael.
