summaryrefslogtreecommitdiff
path: root/fastboot/socket.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-11-21 17:23:51 -0800
committerElliott Hughes <enh@google.com>2016-02-03 16:24:37 -0800
commit53a0a99fe8197984acd5ed6324e945c09772a73e (patch)
treed8c9775c174d21d9317b00ba2b61c6d3a26c9f38 /fastboot/socket.cpp
parentba3014c914eb65911b3bb367a1b8e02705ecf398 (diff)
adb: win32: fix start-server to properly display UTF-8 on the console
fwrite() is a macro that maps to adb_fwrite(), which can write UTF-8 to the console. Use it to write the output that comes from the subprocess adb server. To do this, dup the stdout/stderr file descriptor and make a duplicate FILE* stream, in binary mode (since we're reading raw bytes from the subprocess), and unbuffered. Change-Id: I480761bae0bd576dc9e03fa4d31266f4e49635ed Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'fastboot/socket.cpp')
0 files changed, 0 insertions, 0 deletions