[Mono-bugs] [Bug 673793] New: Assembly loading fails when path contains national language characters
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 21 09:53:15 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=673793
https://bugzilla.novell.com/show_bug.cgi?id=673793#c0
Summary: Assembly loading fails when path contains national
language characters
Classification: Mono
Product: Mono: Runtime
Version: 2.10.x
Platform: x86
OS/Version: Windows 7
Status: NEW
Severity: Major
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: horst at kakuschke.de
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Blocker: ---
Created an attachment (id=415308)
--> (http://bugzilla.novell.com/attachment.cgi?id=415308)
Tests for Assembly loading in Paths containing national language characters
Description of Problem:
When an application path contains natinal language characters the loading of
assemblies fails with Mono 2.10.
I tried to execute Mono 2.10 with assembly "test1.exe" in folder "C:\Ä\"
(german A-umlaut), which results in "Cannot open assembly 'C:\Ã"\test1exe': No
such file or directory."
When I change the current path to "C:\Ä\" and just give the assembly name
(without path) as parameter to mono.exe, there is a different error message:
"Cannot determine the text encoding for the assembly location: C:\Ä\test1.exe
Please add the correct encoding to MONO_EXTERNAL_ENCODINGS and try again."
I tried to add "850" or "IBM-850" as encoding to MONO_EXTERNAL_ENCODINGS, but
it makes no difference.
With folders cotaining NO national language characters (eg "C:\A\") everything
works fine.
Tested with older versions:
- 2.6.7 works fine
- 2.8.2 can load assemblies in paths with national language chars, as long the
assembly full path is given as parameter (otherwise it says "Cannot open
assembly 'test1.exe': Result too large.")
Steps to reproduce the problem:
1. Unpack the attached zip File to any location on a windows machine.
2. Verify location of local Mono installation (in "test.cmd" line: "SET
__monobase=C:\Program Files\Mono-2.10")
3. Execute "test.cmd" (attention: this creates folders "C:\A\" and "C:\Ä\" on
local machine)
"Test1.exe" is a standalone assembly (just writes "Hello Test1").
"Test2.exe" needs "Test2dll.dll" (just writes "Hello Test2").
Actual Results:
- Error message like "Cannot open assembly 'C:\Ã"\test1.exe" when run in paths
that contain national language characters.
Expected Results:
- Assembly loads and writes message to console even in paths that contain
national language characters.
How often does this happen?
- Everytime
Additional Information:
--
Configure bugmail: https://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