[Mono-bugs] [Bug 59599][Wis] Changed - False with a capital F appears in autogenerated ASP.NET .cs files, version 0.95
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 4 Jun 2004 11:47:29 -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 zealy@freemail.hu.
http://bugzilla.ximian.com/show_bug.cgi?id=59599
--- shadow/59599 2004-06-04 10:55:41.000000000 -0400
+++ shadow/59599.tmp.29695 2004-06-04 11:47:29.000000000 -0400
@@ -52,6 +52,26 @@
Additional Information:
Tried to play around with locales, searched the sources for the string
literal "False" but both yielded no particular result.
------- Additional Comments From jackson@ximian.com 2004-06-04 10:55 -------
Could you try setting your LANG=C ?
+
+------- Additional Comments From zealy@freemail.hu 2004-06-04 11:47 -------
+done that, but to no avail. it is indeed a problem with Culture, as
+inspecting the code showed that the
+System.CodeDom.Compiler\CodeGenerator.cs file contains the line which
+produces the incorrect string, because String.ToLower() doesn't work.
+An ugly hack (well not uglier than the original solution converting a
+human readable string to lowercase to make it C# compilant...) is the
+following little patch:
+423c423,424
+< output.Write (e.Value.ToString
+().ToLower ());
+---
+> // output.Write (e.Value.ToString
+().ToLower ());
+> output.Write ((bool)
+e.Value ? "true" : "false");
+
+Still need some help with the culture though, I suppose it affects a
+lot of things... blöe.