https://issues.dlang.org/show_bug.cgi?id=19518
Basile B. <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Basile B. <[email protected]> --- This is not a bug. D standard library auto decoded input ranged of char and wchar so their ElementEncodingType is dchar. The reasoning behind is this is that imagine an array such as ['é','µ','ç'] (which is somewhat equivalent to the string "éµç".dup btw) You'd expect 3 elements, not 6. So if you want to get rid of decoding, cast your array as ubyte[] (or use std.range.byCodeUnit) --
