[Mono-list] REGRESSION: StringBuilder

Jaroslaw Kowalski jaak@zd.com.pl
Tue, 13 Jan 2004 12:32:48 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0071_01C3D9D1.5A298A90
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Looks like there's been a regression introduced in mono yesterday.

This snippet:

        StringBuilder sb =3D new StringBuilder();

        sb.Append("testtesttest");
        sb.Insert(0, '^');
        Console.WriteLine("sb: {0}", sb);

produces:

        sb: ^teetteetteet

It obviously should be:
   =20
        sb: ^testtesttest

This is kind of critical since NAnt no longer runs on mono/Linux.

Jarek
------=_NextPart_000_0071_01C3D9D1.5A298A90
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Looks like there's been a regression =
introduced in=20
mono yesterday.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This snippet:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
StringBuilder sb =3D new StringBuilder();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
sb.Append("testtesttest");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

sb.Insert(0, '^');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Console.WriteLine("sb: {0}", sb);<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>produces:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sb:=20
^teetteetteet</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It obviously should be:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
sb:=20
^testtesttest</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is kind of critical since NAnt no =
longer runs=20
on mono/Linux.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jarek</DIV></FONT></BODY></HTML>

------=_NextPart_000_0071_01C3D9D1.5A298A90--