www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Phobos] std.utf error reporting

reply J C Calvarese <jcc7 cox.net> writes:
I've tested this with DMD 0.85 (or is it 0.86?). Instead of reporting 
the error message, std.utf prints out:
Error: s


I believe there's an easy fix. In phobos\std\utf.d change line 21 from
	super("s");
to
	super(s);



Here's an example of the error in action:

private import std.utf;

int main(char[][] Args)
{

	dchar[] m_dstring;
	m_dstring = toUTF32(cast(char[]) "\u0000\ubbbf\ufffe\u0a0d\u0d0a");

     return 0;
}


-- 
Justin
http://jcc_7.tripod.com/d/
Apr 26 2004
parent "Walter" <newshound digitalmars.com> writes:
"J C Calvarese" <jcc7 cox.net> wrote in message
news:c6kt6v$4bv$1 digitaldaemon.com...
 I believe there's an easy fix. In phobos\std\utf.d change line 21 from
 super("s");
 to
 super(s);

You are, of course, correct. Thanks!
May 02 2004