[Mono-bugs] [Bug 549104] New: app.config with BOM not read
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 22 06:15:45 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=549104
User doc.formatique at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549104#c495490
Summary: app.config with BOM not read
Classification: Mono
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: doc.formatique at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3)
Gecko/20091020 Ubuntu/9.10 (karmic) Firefox/3.5.3
(Possibly related to #495490?)
glib's gmarkup.c chokes on UTF-8 "BOM". Moreover,
metadata/mono-config.c:parse_error is a no-op; so e.g. dllmaps in app.config's
created using, say, VS 2008 default encoding are silently ignored
Arguably, the fix should go in glib/gmarkup.c:g_markup_parse_context_parse ...
Otherwise metadata/mono-config.c:mono_config_parse_xml_with_context could skip
the silly bits.
Reproducible: Always
Steps to Reproduce:
1. Create a wrapper around zlib for (corrupted?) .gz files which IO.Compression
doesn't manage
2. Write the appropriate app.config, save it as UTF-8 with BOM
3. Try your app
Actual Results:
Unhandled Exception: System.DllNotFoundException: zlib1
Expected Results:
*** glibc detected *** mono: free(): invalid pointer: 0x00007f1d8588dd60 ***
(well, my wrapper is obviously buggy :) )
--
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