[Mono-bugs] [Bug 551615] New: Korean text (cp949) cannot be decoded

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 30 19:27:43 EDT 2009


           Summary: Korean text (cp949) cannot be decoded
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: greg.smolyn at strangeloopnetworks.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=324968)
 --> (http://bugzilla.novell.com/attachment.cgi?id=324968)
Test case to demonstrate failure to decode Korean Text

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us)
AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9

System: Mono 2.6 PR1

Korean text in kt_c_5601-1987 and cp949 cannot be decoded properly.

When using Decoder.Convert(), an exception is being thrown when trying to
decode korean text character by character.

Reproducible: Always

Steps to Reproduce:
1. Run attached solution 
Actual Results:  
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
  at I18N.CJK.KoreanEncoding+KoreanDecoder.GetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex, Boolean
refresh) [0x00048] in
  at System.Text.Decoder.Convert (System.Byte[] bytes, Int32 byteIndex, Int32
byteCount, System.Char[] chars, Int32 charIndex, Int32 charCount, Boolean
flush, System.Int32& bytesUsed, System.Int32& charsUsed, System.Boolean&
completed) [0x00070] in
  at KoreanTest.MainClass.Main (System.String[] args) [0x00087] in

Expected Results:  
No exception.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list