Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 25 Jun 2023 09:26:56 +0200
From: Jₑₙₛ Gustedt <jens.gustedt@...ia.fr>
Cc: musl@...ts.openwall.com
Subject: Re: printf("%lc", L'\0')

Rich,

on Sat, 24 Jun 2023 13:24:55 -0400 you (Rich Felker <dalias@...c.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 ::

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.