Home Bug Reports

IceUtil.StringUtil.unescapeString doesn't unescape

DeepDiverDeepDiver Member Thomas MuellerOrganization: Freelance Software DeveloperProject: Project depend on Customers ✭✭✭
the method IceUtil.StringUtil.unescapeString doesn't unescape string,
which have been escaped with IceUtil.StringUtil.escapeString.

this leads to the issue descibed in this thread:
http://www.zeroc.com/vbulletin/showpost.php?p=9193&postcount=1
	string test = "1\\/\"";
	string test_esc = IceUtil.StringUtil.escapeString( test, "" );
	string test_unesc = null;
	bool suc = IceUtil.StringUtil.unescapeString( test_esc, 0, test_esc.Length, out test_unesc );

this piece of code has been tested on .NET 1.1 / VS 2003 and .NET 2.0/VS 2005.
ice version is both cases Ice-3.0.0.

THX & CU

Tom

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Thanks for reporting this! I've posted a patch in the patch forum.

    Cheers,

    Michi.
Sign In or Register to comment.