Author: gonzalo
Date: 2005-09-23 21:21:18 -0400 (Fri, 23 Sep 2005)
New Revision: 50664
Modified:
trunk/mcs/class/System.Web/System.Web/BrowserCapabilities.cs
trunk/mcs/class/System.Web/System.Web/ChangeLog
Log:
2005-09-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
Just use the platform to determine whether Win32 is true or not. Fixes
bug #74777.
Modified: trunk/mcs/class/System.Web/System.Web/BrowserCapabilities.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/BrowserCapabilities.cs
2005-09-24 01:07:03 UTC (rev 50663)
+++ trunk/mcs/class/System.Web/System.Web/BrowserCapabilities.cs
2005-09-24 01:21:18 UTC (rev 50664)
@@ -366,11 +366,13 @@
public bool Win32 {
get {
+ // This is the list of different windows
platforms that browscap.ini has.
+ // Win16 Win2000 Win2003 Win32 Win95 Win98
WinME WinNT WinVI WinXP
if (!Get (HaveWin32)) {
Set (HaveWin32);
- win32 = ReadBoolean ("win32", false);
+ string platform = Platform;
+ win32 = (platform != "Win16" &&
platform.StartsWith ("Win"));
}
-
return win32;
}
}
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2005-09-24 01:07:03 UTC
(rev 50663)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2005-09-24 01:21:18 UTC
(rev 50664)
@@ -1,5 +1,11 @@
2005-09-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+ * BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
+ Just use the platform to determine whether Win32 is true or not. Fixes
+ bug #74777.
+
+2005-09-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
* HttpApplication.cs: fixed typo when setting UI culture. Closes bug
#76189.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches