digitalmars.D.bugs - [Issue 2121] New: std.conv.to doesn't know about std.encoding
- d-bugmail puremagic.com (26/26) May 22 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2121
- d-bugmail puremagic.com (10/10) Oct 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2121
- d-bugmail puremagic.com (11/11) Sep 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=2121
http://d.puremagic.com/issues/show_bug.cgi?id=2121
Summary: std.conv.to doesn't know about std.encoding
Product: D
Version: 2.013
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla digitalmars.com
ReportedBy: caron800 googlemail.com
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.
--
May 22 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2121
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |andrei metalanguage.com
AssignedTo|nobody puremagic.com |andrei metalanguage.com
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2121
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
06:57:30 PDT ---
Invalidated by the upcoming demise of std.encoding.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 26 2010









d-bugmail puremagic.com 