diff options
| author | Spencer Low <CompareAndSwap@gmail.com> | 2015-11-12 15:20:15 -0800 |
|---|---|---|
| committer | Spencer Low <CompareAndSwap@gmail.com> | 2015-11-12 17:13:08 -0800 |
| commit | d21dc825bbecad6ce480c5e5c574cc77eadcd779 (patch) | |
| tree | 66c5eaad26ca123d148e9e07a23c2b16dfacb0aa /base/errors_unix.cpp | |
| parent | 5d75c9d9c20181defe778e018a50c37ab784cffc (diff) | |
adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()
Now that we have a more standardized API (also available in Chromium),
switch to it. Another benefit is real error handling instead of just
killing the process on invalid Unicode.
Make UTF8ToWide()/WideToUTF8() set errno to EILSEQ on bad input. This is
the same error code that wcsrtombs(3) uses.
Update the unittest to check for EILSEQ.
Change-Id: Ie92acf74d37adaea116cf610c1bf8cd433741e16
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
