www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17328] New: std.experimental.logger: wrong hex formatting for

https://issues.dlang.org/show_bug.cgi?id=17328

          Issue ID: 17328
           Summary: std.experimental.logger: wrong hex formatting for
                    zeros
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: mrsmith33 yandex.ru

import std.stdio;
import std.experimental.logger;

void main()
{
    ubyte[] data = [0];
    writefln("%(%02x%)", data); // writefln 00
    infof("%(%02x%)", data);    // infof    000
}
------------------------------------------------------

https://dpaste.dzfl.pl/1671f86db093

--
Apr 15