[Mono-list] WriteLine of string with trailing \0's
Matt Calder
mvcalder at gmail.com
Mon Aug 2 14:35:44 EDT 2010
Hi,
I had some trouble debugging code that was working with fixed length
strings. After a fair amount of debugging in the wrong direction, I
discovered the issue boiled down to the question of what should be
printed by this line:
System.Console.WriteLine("[\0\0\0]");
On mono (2.6.3) running on Ubuntu (10.04) this prints "[]". On Windows
this prints "[ ]". Should they be the same? and if so, which is
right?
Matt
More information about the Mono-list
mailing list