Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=76876 --- shadow/76876 2005-12-01 21:59:37.000000000 -0500 +++ shadow/76876.tmp.2506 2005-12-01 21:59:37.000000000 -0500 @@ -0,0 +1,45 @@ +Bug#: 76876 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: Debian Sid +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Convert.ToBase64String ignores Base64FormattingOptions + +Description of Problem: +The Method with the following signature in the System.Convert class ignores +the Base64FormattingOptions parameter. + +public static string ToBase64String (byte[] inArray, int offset, int +length, Base64FormattingOptions options); + +Steps to reproduce the problem: + +1. byte[] bs = +Convert.FromBase64String("ZuBZ7PESb3VRXgrl/KSRJd/hTGBvaEvEplqH3izPomDv5nBjS9MzcD1h8tOWzS7/wYGnaip8\nbhBfCrpWxivi8G7R08oBcADIiclpZeqRxai9kG4WoBUzJ6MCbxuvb1k757q+D9nqoL0p9Rer\n+5+vNodYkHYwqnKKyMBSQ11sspw=\n"); +2. string s = Convert.ToBase64String(bs, Base64FormattingOptions.None); + + +Actual Results: +s.Contains("\n") == true + +Expected Results: +s.Contains("\n") == false + +How often does this happen? +Always + +Additional Information: +It looks like the implementation is using the +ToBase64Transform.InternalTransformFinalBlock method for every block. It +seems like it should use the TransformBlock method for all but the final block. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
