Bug 2121 – std.conv.to doesn't know about std.encoding

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-05-22T07:24:00Z
Last change time
2015-06-09T01:19:24Z
Assigned to
andrei
Creator
caron800

Comments

Comment #0 by caron800 — 2008-05-22T07:24:23Z
The following does not work import std.conv; import std.encoding; string s = "hello world"; AsciiString t = to!(AsciiString)(s); However, it is perfectly possible to do the transoding by using std.encoding functions alone. import std.encoding; string s = "hello world"; AsciiString t; transcode(s,t); Please fix std.conv.to so that it recognises AsciiString, Latin1String and Windows1252String, and can transcode between all string types.
Comment #1 by andrei — 2010-09-26T06:57:30Z
Invalidated by the upcoming demise of std.encoding.