src/winsup/cygwin ChangeLog strfuncs.cc

corinna@cygwin.com corinna@cygwin.com
Wed Sep 23 11:31:00 GMT 2009


CVSROOT:	/cvs/src
Module name:	src
Changes by:	corinna@sourceware.org	2009-09-23 11:31:00

Modified files:
	winsup/cygwin  : ChangeLog strfuncs.cc 

Log message:
	* strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair
	second halves to unambiguous ASCII SO sequence.  When converting
	chars invalid in current codepage to ASCII SO sequence, make
	sure to check for surrogate pair second half only if ct least
	one wide characters is left.  Decrement nwc if valid second half has
	been converted.
	(sys_cp_mbstowcs): Improve ASCII SO handling.  Never break from loop
	if invalid character has been found.  Recognize ASCII SO sequence
	representing originally invalid mulitbyte char converted into a
	lone surrogate pair second half.  Convert accordingly.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.4653&r2=1.4654
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/strfuncs.cc.diff?cvsroot=src&r1=1.35&r2=1.36



More information about the Cygwin-cvs mailing list