OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e02e2ce
)
* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
author
corinna
<corinna>
Tue, 22 Sep 2009 09:44:32 +0000
(09:44 +0000)
committer
corinna
<corinna>
Tue, 22 Sep 2009 09:44:32 +0000
(09:44 +0000)
invalid multibyte sequence.
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/strfuncs.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
d3d9214
..
ad149c8
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-1,5
+1,10
@@
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
compatible errno in case of trailing slash in newpath.
diff --git
a/winsup/cygwin/strfuncs.cc
b/winsup/cygwin/strfuncs.cc
index
e16d94d
..
88bbf76
100644
(file)
--- 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;
}