> 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");        
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to