public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH 1/2] Cygwin: pty: Revise convert_mb_str() function.
Date: Wed, 9 Sep 2020 22:39:28 +0900	[thread overview]
Message-ID: <20200909223928.539aa809096135ba629c9733@nifty.ne.jp> (raw)
In-Reply-To: <20200909080721.409-2-takashi.yano@nifty.ne.jp>

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>

  reply	other threads:[~2020-09-09 13:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09  8:07 [PATCH 0/2] Cygwin: pty: Changes regarding charset conversion Takashi Yano
2020-09-09  8:07 ` [PATCH 1/2] Cygwin: pty: Revise convert_mb_str() function Takashi Yano
2020-09-09 13:39   ` Takashi Yano [this message]
2020-09-09  8:07 ` [PATCH 2/2] Cygwin: pty: Fix input charset for non-cygwin apps with disable_pcon Takashi Yano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200909223928.539aa809096135ba629c9733@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin-patches@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).