D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15954 - std.experimental.logger repeats wstring message
Summary: std.experimental.logger repeats wstring message
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All Windows
: P1 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 15:37 UTC by Jesse Phillips
Modified: 2020-03-21 03:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jesse Phillips 2016-04-25 15:37:56 UTC
When using std.experimental.logger to log a wstring, the message is repeated multiple times, but only in pieces.

------------------
import std.conv;
import std.experimental.logger;

void main() {
	log("123456789".to!wstring);
}
-------------------

2016-04-25T08:37:26.217:test.d:main:5 112123123412345123456123456712345678123456789
Comment 1 Robert Schadek 2016-04-26 09:38:37 UTC
hm, strange.

it also duplicates the string for to!dstring, but not for to!string.

I'm working on it
Comment 2 Nathan S. 2017-11-30 17:51:27 UTC
Fix was committed in May 2017 but the title referenced issue 15945 instead.

https://github.com/dlang/phobos/commit/9e6759995a1502dbd92a05b4d0a8b662f1c6032b#diff-41bb8731b16e43f1b48e0d529c498fa9