OSDN Git Service

Fix parsing of shell command output regardless of encoding
authorRoman Birg <roman@cyngn.com>
Wed, 17 Jun 2015 17:58:01 +0000 (10:58 -0700)
committerRoman Birg <roman@cyngn.com>
Mon, 22 Jun 2015 18:58:31 +0000 (11:58 -0700)
commit91c9e78cab4facd36f5a0676652ce473917d1a1d
tree8ec21fc1795a97074f1c9487b71acae80526ed43
parent9cd3ae036cccd778c2fbda443583a5ae91ba474c
Fix parsing of shell command output regardless of encoding

We always know the start and end control patterns will be in UTF-8.
However, the content in between could be encoded differently.

Search for the patterns in the shell command output using raw bytes,
instead of a string pattern match.

Change-Id: I6cb019b644d371c37593fe26784f6e9d41844dec
Signed-off-by: Roman Birg <roman@cyngn.com>
src/com/cyanogenmod/filemanager/console/shell/ShellConsole.java