* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
invalid multibyte sequence.
This commit is contained in:
parent
4401b147bb
commit
abe6b5a3e2
|
@ -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>
|
2009-09-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (symlink_worker): Rework error handling to generate Linux
|
* path.cc (symlink_worker): Rework error handling to generate Linux
|
||||||
|
|
|
@ -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. */
|
decoding errors, seems like the best we can do. */
|
||||||
if (dst)
|
if (dst)
|
||||||
*ptr = L'\xdc80' | *pmbs;
|
*ptr = L'\xdc80' | *pmbs;
|
||||||
|
memset (&ps, 0, sizeof ps);
|
||||||
bytes = 1;
|
bytes = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue