www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - std.utf Access Violation

reply Vathix <vathix dprogramming.com> writes:
import std.stdio;
import std.uri;
int main()
{
    writefln("%s", std.uri.encode("http://www.digitalmars.com/~fred/fred's  
RX.html#foo"));
    return 0;
}


Output (Windows):
Error: Access Violation


Seems to only happen if there's something to encode in the string. If I  
compile uri.d and link with it myself it works fine, so it might be that  
phobos.lib has an outdated version compiled in. I've had that problem in  
my own libs.
Nov 18 2004
next sibling parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
Vathix schrieb am Thu, 18 Nov 2004 22:15:44 -0500:
 import std.stdio;
 import std.uri;
 int main()
 {
     writefln("%s", std.uri.encode("http://www.digitalmars.com/~fred/fred's  
 RX.html#foo"));
     return 0;
 }


 Output (Windows):
 Error: Access Violation
~wow~, this tiny programm sucks memory like a black hole! got killed under Linux when it passed the 2GB border.
Nov 18 2004
prev sibling parent Vathix <vathix dprogramming.com> writes:
oops, wrong subject. Should be std.uri  :P
I made that mistake like 4 times today.. too many acronyms!
Nov 19 2004