From 2d4728e60621c8844ec679291aa5458c622d8f4f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 14 Mar 2023 16:58:35 +0000 Subject: Update printf %b/%B C2x support WG14 recently accepted two additions to the printf/scanf %b/%B support: there are now PRIb* and SCNb* macros in , and printf %B is now an optional feature defined in normative text, instead of recommended practice, with corresponding PRIB* macros that can also be used to test whether that optional feature is supported. See N3072 items 14 and 15 for details (those changes were accepted, some other changes in that paper weren't). Add the corresponding PRI* macros to glibc and update one place in the manual referring to %B as recommended. (SCNb* should naturally be added at the same time as the corresponding scanf %b support.) Tested for x86_64 and x86. --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 0f76e7a416..c54af824e0 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,8 @@ Major new features: input to the %i format: fscanf, scanf, sscanf, vscanf, vsscanf, vfscanf, fwscanf, wscanf, swscanf, vfwscanf, vwscanf, vswscanf. +* PRIb* and PRIB* macros from C2X have been added to . + Deprecated and removed features, and other changes affecting compatibility: * In the Linux kernel for the hppa/parisc architecture some of the -- cgit v1.2.3-70-g09d2