[Mono-bugs] [Bug 77224][Nor] New - bug in CP932 encoding

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 12 08:53:24 EST 2006


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 bruno at clisp.org.

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

--- shadow/77224	2006-01-12 08:53:24.000000000 -0500
+++ shadow/77224.tmp.11415	2006-01-12 08:53:24.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 77224
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Mac OS X 10.3
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bruno at clisp.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: bug in CP932 encoding
+
+Please fill in this template when reporting a bug, unless you know what you are 
+doing. 
+Description of Problem: 
+ 
+The CP932 encoding converter throws exceptions where it shouldn't. 
+ 
+Steps to reproduce the problem: 
+1. mcs monobug.cs  
+2. mono monobug.exe  
+ 
+Actual Results: 
+ 
+System.ArgumentException: Insufficient space in the argument array. 
+Parameter name: bytes 
+in <0x00b8c> I18N.CJK.CP932:GetBytesImpl (System.Char* chars, Int32 
+charCount, System.Byte* bytes, Int32 byteCount) 
+in <0x0015c> I18N.Common.MonoEncoding:GetBytes (System.Char[] chars, 
+Int32 charIndex, Int32 charCount, System.Byte[] bytes, Int32 byteIndex) 
+in <0x000a0> System.Text.Encoding:GetBytes (System.Char[] chars) 
+in <0x000b0> monobug:Main (System.String[] args) 
+in <0x00b8c> I18N.CJK.CP932:GetBytesImpl (System.Char* chars, Int32 
+charCount, System.Byte* bytes, Int32 byteCount) 
+in <0x0015c> I18N.Common.MonoEncoding:GetBytes (System.Char[] chars, 
+Int32 charIndex, Int32 charCount, System.Byte[] bytes, Int32 byteIndex) 
+in <0x000a0> System.Text.Encoding:GetBytes (System.Char[] chars) 
+in <0x000b0> monobug:Main (System.String[] args) 
+ 
+Expected Results: 
+ 
+No exception. 
+ 
+How often does this happen?  
+ 
+Reproducible. 
+ 
+Additional Information: 
+ 
+Code see attachment.


More information about the mono-bugs mailing list