From: corinna Date: Tue, 22 Sep 2009 09:44:32 +0000 (+0000) Subject: * strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8cd9a23856ab1a6f9d7ee990de4f98a32cd5a850;p=pf3gnuchains%2Fpf3gnuchains3x.git * strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling invalid multibyte sequence. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d3d921426a..ad149c8c5f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2009-09-22 Corinna Vinschen + * strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling + invalid multibyte sequence. + +2009-09-22 Corinna Vinschen + * path.cc (symlink_worker): Rework error handling to generate Linux compatible errno in case of trailing slash in newpath. diff --git a/winsup/cygwin/strfuncs.cc b/winsup/cygwin/strfuncs.cc index e16d94d865..88bbf767ce 100644 --- a/winsup/cygwin/strfuncs.cc +++ b/winsup/cygwin/strfuncs.cc @@ -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; }