[PATCH 1/2] Cygwin: pty: Revise convert_mb_str() function.

Takashi Yano takashi.yano@nifty.ne.jp
Wed Sep 9 13:39:28 GMT 2020


On Wed,  9 Sep 2020 17:07:20 +0900
Takashi Yano wrote:
> +	    /* Max bytes in multibyte char is 6. */
> +	    for (mblen = 1; mblen <= 6; mblen ++)

Sorry, I misunderstood that the max utf-8 char length is 6.
Actually, it is 4, therefore mbstate_t can be used.

I will submit v2 patch.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin-patches mailing list