platform_system_core/base
Spencer Low d21dc825bb 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>
2015-11-12 17:13:08 -08:00
..
include/base adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8() 2015-11-12 17:13:08 -08:00
.clang-format Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
Android.mk Merge changes Ic124ecb9,I94de55d2 2015-11-12 22:50:03 +00:00
CPPLINT.cfg Don't show lint errors for rvalue references. 2015-04-02 18:38:01 -07:00
file.cpp Revert "Revert "adb/base: fix adb push of Unicode filenames on Win32"" 2015-11-11 18:23:00 -08:00
file_test.cpp win32: adb_test/libbase_test fixes 2015-08-06 18:09:32 -07:00
logging.cpp Merge changes Ic124ecb9,I94de55d2 2015-11-12 22:50:03 +00:00
logging_test.cpp Fix lseek argument order. 2015-10-20 13:18:22 -07:00
parseint_test.cpp Fix ParseInt/ParseUint to handle explicit "0x" hex. 2015-11-02 09:01:53 -08:00
stringprintf.cpp Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
stringprintf_test.cpp libbase_test: win32: get some tests working 2015-08-03 10:54:17 -07:00
strings.cpp Make Join support string delimiters 2015-11-02 11:04:34 -08:00
strings_test.cpp Generalize Join to work for any container/element. 2015-05-22 10:07:06 -07:00
test_main.cpp Support base::logging on Windows. 2015-04-29 18:01:53 -07:00
test_utils.cpp adb/base win32 tests: fix comment and open() flags 2015-09-01 14:57:58 -07:00
utf8.cpp adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8() 2015-11-12 17:13:08 -08:00
utf8_test.cpp adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8() 2015-11-12 17:13:08 -08:00