mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Jₑₙₛ Gustedt" <jens.gustedt@inria.fr>
Cc: musl@lists.openwall.com
Subject: Re: [musl] printf("%lc", L'\0')
Date: Sun, 25 Jun 2023 09:26:56 +0200	[thread overview]
Message-ID: <20230625092656.6c23c6de@inria.fr> (raw)
In-Reply-To: <20230624172454.GP4163@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Rich,

on Sat, 24 Jun 2023 13:24:55 -0400 you (Rich Felker <dalias@libc.org>)
wrote:

> OK, so to be clear, WG14 is making the change proposed in
> https://austingroupbugs.net/view.php?id=1647 and changing the standard
> to specify that printf("%lc", L'\0') should produce 1 NUL character?

yes

the text that was adopted reads

    If an `l` length modifier is present, the `wint_t` argument is
    converted as if by a call to the `wcrtomb` function with a pointer
    to storage of at least `MB_CUR_MAX` bytes, the `wint_t` argument
    converted to `wchar_t`, and an initial shift state.

Jₑₙₛ

-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

      reply	other threads:[~2023-06-25  7:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-06 10:02 Jₑₙₛ Gustedt
2023-06-06 12:43 ` Rich Felker
2023-06-06 14:07   ` Jₑₙₛ Gustedt
2023-06-06 14:19     ` Rich Felker
2023-06-06 14:29       ` Jₑₙₛ Gustedt
2023-06-24 13:21   ` Jₑₙₛ Gustedt
2023-06-24 17:24     ` Rich Felker
2023-06-25  7:26       ` Jₑₙₛ Gustedt [this message]

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=20230625092656.6c23c6de@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).