From: Andreas Schwab <schwab@linux-m68k.org>
To: Carlos O'Donell via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH v3] Add new C.UTF-8 locale (Bug 17318)
Date: Fri, 19 Feb 2021 09:47:35 +0100 [thread overview]
Message-ID: <87o8gg30m0.fsf@igel.home> (raw)
In-Reply-To: <20210219032748.564216-1-carlos@redhat.com> (Carlos O'Donell via Libc-alpha's message of "Thu, 18 Feb 2021 22:27:48 -0500")
On Feb 18 2021, Carlos O'Donell via Libc-alpha wrote:
> +static int
> +output_utf8_bytes (unsigned int cp, size_t nbytes, unsigned char *bytes)
> +{
> + /* We need at least 1 byte. */
> + if (nbytes < 1)
> + return -1;
> +
> + /* One byte range. */
> + if (cp >= 0x0 && cp <= 0x7f)
> + {
> + bytes[0] = cp & 0x7f;
aka bytes[0] = cp.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2021-02-19 8:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 3:27 [PATCH v3] Add new C.UTF-8 locale (Bug 17318) Carlos O'Donell via Libc-alpha
2021-02-19 3:34 ` Carlos O'Donell via Libc-alpha
2021-02-19 8:47 ` Andreas Schwab [this message]
2021-03-11 19:05 ` Florian Weimer via Libc-alpha
2021-03-11 19:19 ` Florian Weimer via Libc-alpha
2021-03-11 22:55 ` Carlos O'Donell via Libc-alpha
2021-04-28 11:54 ` Carlos O'Donell via Libc-alpha
2021-04-28 17:36 ` Joseph Myers
2021-04-29 11:43 ` Carlos O'Donell via Libc-alpha
2021-04-29 11:57 ` Carlos O'Donell via Libc-alpha
-- strict thread matches above, loose matches on Subject: below --
2021-02-19 3:26 Carlos O'Donell via Libc-alpha
2021-02-19 3:22 Carlos O'Donell via Libc-alpha
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
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8gg30m0.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=libc-alpha@sourceware.org \
/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).