Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 13 Jun 2023 02:23:37 +0200
From: Bruno Haible <bruno@...sp.org>
To: Rich Felker <dalias@...c.org>
Cc: musl@...ts.openwall.com
Subject: Re: swprintf cannot handle the character 0xff

Rich Felker wrote:
> I wonder if this should actually be a defect and if wide printf should
> be specified as converting the value, converted to (unsigned char), as
> if by btowc, rather than the raw value.

I agree. If ISO C and POSIX had specified or would specify %c in wide printf
like this, it would eliminate a (small) pitfall for programmers.

Bruno



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.