[Mono-bugs] [Bug 73086][Nor] Changed - The UTF-8 decoding problems

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 12 May 2005 18:22:51 -0400 (EDT)


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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=73086

--- shadow/73086	2005-04-23 15:12:25.000000000 -0400
+++ shadow/73086.tmp.9054	2005-05-12 18:22:51.000000000 -0400
@@ -5,13 +5,13 @@
 OS Details: Windows XP Professional Service Pack 2
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: C#
-AssignedTo: miguel@ximian.com                            
+AssignedTo: lluis@ximian.com                            
 ReportedBy: svetlanaz@mainsoft.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Summary: The UTF-8 decoding problems
 
@@ -112,6 +112,20 @@
 ------- Additional Comments From gonzalo@ximian.com  2005-04-21 07:58 -------
 Yes, that's why mcs needs to be fixed before applying this patch (I
 moved the component of the bug to the C# compiler)
 
 ------- Additional Comments From miguel@ximian.com  2005-04-23 15:12 -------
 I will take care of the mcs side of things.
+
+------- Additional Comments From miguel@ximian.com  2005-05-12 18:22 -------
+Am re-assigning to Lluis.
+
+I thought that this had broken the encoder-autodetection code in
+StreamReader, but a sample program show that this is working.
+
+The problem seems to be that it broke the computation of the preamble
+size in mcs/support.cs's SeekableStreamReader in the compiler. 
+
+I wonder: what if we do not use corlib's auto-detection of the
+encoder, and instead "peek" at the results ourselves in
+SeekableStreamReader.  We only auto-detect 3 kinds of files anyways
+(The three unicode variants).