e664429d77
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.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cygwin documentation is available on the net at http://cygwin.com You might especially be interested in http://cygwin.com/faq/faq.programming.html#faq.programming.building-cygwin