Fix UTF-16 surrogate handling in wctomb and friends.

* libc/stdlib/wctomb_r.c (__utf8_wctomb): Fix check for handling a
	lone high surrogate.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2015-04-01 15:31:18 +02:00
parent 71a897e40d
commit 9b42474f29
3 changed files with 9 additions and 1 deletions

View File

@@ -35,3 +35,6 @@ Bug Fixes
- Avoid potential crash at startup or in getgroups(2).
Addresses: https://cygwin.com/ml/cygwin/2015-04/msg00010.html
- Fix UTF-16 surrogate handling in wctomb and friends.
Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00452.html