[Mono-bugs] [Bug 606199] New: Encoding getencoding does not support utf 16 le

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat May 15 12:55:09 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=606199

http://bugzilla.novell.com/show_bug.cgi?id=606199#c0


           Summary: Encoding getencoding does not support utf 16 le
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: erik at danviken.se
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; sv-SE;
rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7

Using NPOI (http://npoi.codeplex.com/) to create a excel file gives me a crash
when running mono 2.6.4 on mac os x 10.5.

Gives the following error:

System.ArgumentException: Encoding name 'UTF-16LE' not supported
Parameter name: name
  at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in
<filename unknown>:0 
  at NPOI.Util.StringUtil.PutUnicodeLE (System.String input, System.Byte[]
output, Int32 offset) [0x00000] in <filename unknown>:0

Havnt tried any other platform, but same dll's work in microsofts .net

Reproducible: Always

Steps to Reproduce:
1.Create a excel document with NPOI
2.Get crash
Actual Results:  
My program crashes, leaveas me with the error in a terminal window

Expected Results:  
Outputed a neat and nice excel file.

-- 
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