[Mono-bugs] [Bug 27722][Nor] New - Error in iconv_convert

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Jul 2002 17:54:34 -0000


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

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

--- shadow/27722	Fri Jul 12 13:54:34 2002
+++ shadow/27722.tmp.4936	Fri Jul 12 13:54:34 2002
@@ -0,0 +1,49 @@
+Bug#: 27722
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ximian@jamesots.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error in iconv_convert
+
+When using a StreamWriter with UnicodeEncoding, I get an error in 
+unicode.c.  
+ 
+Here is the programme which causes the error: 
+ 
+using System; 
+using System.IO; 
+using System.Text; 
+ 
+class Test { 
+  public static void Main() { 
+    System.Console.WriteLine("Hello"); 
+    FileStream fs = new 
+FileStream("unicode.txt",FileMode.Create,FileAccess.Write); 
+    StreamWriter sw = new StreamWriter(fs,new UnicodeEncoding()); 
+    sw.WriteLine("Hello"); 
+    sw.WriteLine("Goodbye"); 
+    sw.Close(); 
+    fs.Close(); 
+  } 
+} 
+ 
+I compile it simple with 'mcs test.cs', and run with 'mono test.cs'. Here 
+is the error I get: 
+ 
+** ERROR **: file unicode.c: line 396 (iconv_convert): should not be 
+reached 
+aborting... 
+Aborted 
+ 
+The error happens every time.