diff options
author | Joshua Duong <joshuaduong@google.com> | 2020-07-30 16:34:29 -0700 |
---|---|---|
committer | Joshua Duong <joshuaduong@google.com> | 2020-08-03 18:55:17 -0700 |
commit | 62a42ec8ca050326b42722fea9734973ed0ef1aa (patch) | |
tree | 36879a304e7ef05447e829bc54c94bc45719787c /libsparse/sparse.cpp | |
parent | 3b8b444fce5ca7f19e9560fd73600f3401308553 (diff) |
[adb] Correctly read host/user name on Windows.
Bug: 162111908
Test: On linux/mac:
HOSTNAME="" adb keygen mykey; cat mykey.pub # Also LOGNAME
HOSTNAME="测试" adb keygen mykey; cat mykey.pub
HOSTNAME="test" adb keygen mykey; cat mykey.pub
Test: On Windows:
set COMPUTERNAME=&& adb keygen mykey
&& powershell -command "get-content -encoding utf8 mykey.pub" # Also USERNAME
set COMPUTERNAME=测试&& adb keygen mykey
&& powershell -command "get-content -encoding utf8 mykey.pub"
set COMPUTERNAME=test&& adb keygen mykey
&& powershell -command "get-content -encoding utf8 mykey.pub"
Change-Id: I62c952c511a620286aa4e05b1763361406e9f89a
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions