[Mono-dev] Can't run mono-3.12.X on Windows XP
Elmar Haneke
elmar at haneke.de
Thu Jun 25 07:49:03 UTC 2015
> I tried recent version of Mono (3.12.X) on Windows XP machine.
I did find some information about WinXP-Compatibility (for Mono 4.0.2):
1. If you are compiling from source using MinGW (I do that as
Crosscompile on Debian) the native code is all build for XP
compatibility
2. The mscorlib.dll hase some problems on XP
This patch did help for my application ro run on XP, to be more general
you should replace the hardcoded timezone by something more flexible.
--- ./mono-4.0.2.ori/mcs/class/corlib/System/TimeZoneInfo.cs
2015-04-26 18:28:39.000000000 +0200
+++ ./mono-4.0.2/mcs/class/corlib/System/TimeZoneInfo.cs
2015-06-23 14:31:22.327559975 +0200
@@ -111,11 +111,14 @@
#else
#if !NET_2_1
if (IsWindows && LocalZoneKey != null) {
string name =
(string)LocalZoneKey.GetValue ("TimeZoneKeyName");
- name = TrimSpecial (name);
- if (name != null)
- return
TimeZoneInfo.FindSystemTimeZoneById (name);
+ if (name != null) {
+ name = TrimSpecial (name);
+ } else {
+ name = "W. Europe Standard Time";
+ }
+ return
TimeZoneInfo.FindSystemTimeZoneById
(name);
}
#endif
var tz = Environment.GetEnvironmentVariable
("TZ");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150625/a37762f9/attachment.html>
More information about the Mono-devel-list
mailing list