GNU bug report logs - #54388
printf doesn't handle multi-byte values

Previous Next

Package: coreutils;

Reported by: Pádraig Brady <P <at> draigBrady.com>

Date: Mon, 14 Mar 2022 15:39:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 54388 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: calestyo <at> scientia.org, 54388 <at> debbugs.gnu.org
Subject: Re: bug#54388: printf doesn't handle multi-byte values
Date: Fri, 18 Mar 2022 15:41:11 +0000
On 18/03/2022 14:59, Pádraig Brady wrote:
> The attached should fix this up.

The following should make this more efficient for the normal unibyte case,
as one can't have NUL chars in any multi-byte encodings.

-      if (MB_CUR_MAX > 1)                                               \
+      if (MB_CUR_MAX > 1 && *(s + 1))                                   \





This bug report was last modified 3 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.