LGTM
I wonder if there should be a %#U format that prints one of
U+%04x
U+%04x (%c)
depending on whether the argument is printable.
The errors that say (%c) U+%04x now will look bad
if %c is say '\n'.
perhaps. it's easy but of course that issue is why the character is
printed twice in those errors.
On Mon, Dec 6, 2010 at 2:34 PM, <rsc@google.com> wrote:
> LGTM
>
> I wonder if there should be a %#U format that prints one of
>
> U+%04x
> U+%04x (%c)
>
> depending on whether the argument is printable.
> The errors that say (%c) U+%04x now will look bad
> if %c is say '\n'.
>
>
>
> http://codereview.appspot.com/3483041/
>
*** Submitted as http://code.google.com/p/go/source/detail?r=6ebf76a8a974 *** use the new %U format for runes R=rsc CC=golang-dev http://codereview.appspot.com/3483041
Issue 3483041: code review 3483041: use the new %U format for runes
(Closed)
Created 15 years ago by r
Modified 15 years ago
Reviewers:
Base URL:
Comments: 0