* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling

invalid multibyte sequence.
This commit is contained in:
Corinna Vinschen 2009-09-22 09:44:32 +00:00
parent 4401b147bb
commit abe6b5a3e2
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-09-22 Corinna Vinschen <corinna@vinschen.de>
* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
invalid multibyte sequence.
2009-09-22 Corinna Vinschen <corinna@vinschen.de>
* path.cc (symlink_worker): Rework error handling to generate Linux

View File

@ -600,6 +600,7 @@ sys_cp_mbstowcs (mbtowc_p f_mbtowc, char *charset, wchar_t *dst, size_t dlen,
decoding errors, seems like the best we can do. */
if (dst)
*ptr = L'\xdc80' | *pmbs;
memset (&ps, 0, sizeof ps);
bytes = 1;
}