[Mono-bugs] [Bug 76876][Nor] New - Convert.ToBase64String ignores Base64FormattingOptions

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 1 21:59:37 EST 2005

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 grant at janrain.com.


--- 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 Details: Debian Sid
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: grant at janrain.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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 =
+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? 
+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.

More information about the mono-bugs mailing list