[Mono-bugs] [Bug 62539][Wis] New - web.config <globalization culture="" /> is ignored

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Aug 2004 07:49:20 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jaak@zd.com.pl.

http://bugzilla.ximian.com/show_bug.cgi?id=62539

--- shadow/62539	2004-08-05 07:49:20.000000000 -0400
+++ shadow/62539.tmp.8730	2004-08-05 07:49:20.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 62539
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jaak@zd.com.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: web.config <globalization culture="" /> is ignored 
+
+Looks like the culture attribute of web.config <globalization> is ignored.
+
+I have a trivial page that displays current date:
+
+---------
+<%@ Page %>
+<%= DateTime.Now %>
+----------
+
+Under .NET it displays the date according to the culture specified in
+web.config. Assuming I have <globalization culture="pl-PL" /> I get:
+
+2004-08-05 13:28:58
+
+With <globalization culture="en-US" /> I get:
+
+8/5/2004 1:29:25 PM
+
+When I enter an errorneous culture name I get an ASP.NET error.
+
+Under mono/xsp/mod_mono this web.config attribute seems to be ignored. No
+matter what I type there - I always get the default culture. 
+
+I can change it on the page level with 
+
+<% @ Page culture="pl-PL" %> 
+
+and it works fine. It just doesn't want to read it from web.config. I've
+confirmed that web.config is actually read by introducing an error in some
+other place which caused an exception.
+
+I use Fedora Core 2 + apache 2.0.50 + mod_mono_1.0.1 (compiled from
+sources) + mono 1.0.1 (from RPMs)
+
+Jarek