GNU bug report logs - #36887
coreutils-8.31: printf chokes on \u0041

Previous Next

Package: coreutils;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Thu, 1 Aug 2019 11:03:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ulrich Mueller <ulm <at> gentoo.org>, Pádraig Brady
 <P <at> draigBrady.com>
Cc: base-system <at> gentoo.org, 36887 <at> debbugs.gnu.org
Subject: Re: bug#36887: coreutils-8.31: printf chokes on \u0041
Date: Thu, 1 Aug 2019 16:37:44 -0700
Ulrich Mueller wrote:
> Except for the surrogates
> U+D800...U+DFFF, it looks like an arbitrary restriction

It's not entirely arbitrary. Because of the restriction, coreutils printf 
doesn't have to worry about what this command should do:

  printf '\u0025d\n' 1 2

Does this print a single line "%d", or two lines "1" and "2"? There are good 
arguments either way, and one can easily construct even-stranger examples.




This bug report was last modified 2 years and 44 days ago.

Previous Next


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