Author: jackson
Date: 2007-10-09 18:49:00 -0400 (Tue, 09 Oct 2007)
New Revision: 87233

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/xaml.cpp
Log:

                * xaml.cpp: When we are creating objects from a string,
                * set the
        encoding to utf8 so that expat doesn't try to determine the
        encoding from the ?xml declaration (which will be incorrect
        because the string is in utf8).



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-10-09 22:06:54 UTC (rev 87232)
+++ trunk/moon/src/ChangeLog    2007-10-09 22:49:00 UTC (rev 87233)
@@ -1,3 +1,10 @@
+2007-10-09  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * xaml.cpp: When we are creating objects from a string, set the
+       encoding to utf8 so that expat doesn't try to determine the
+       encoding from the ?xml declaration (which will be incorrect
+       because the string is in utf8).
+
 2007-10-09  Chris Toshok  <[EMAIL PROTECTED]>
 
        * clock.cpp (ClockGroup::Stop): If the clock group has children we
@@ -43,6 +50,11 @@
 
 2007-10-09  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * xaml.cpp: Make sure the Surface gets set on custom created
+       UIElements.  Also add them to the created list, so they get freed.
+
+2007-10-09  Jackson Harper  <[EMAIL PROTECTED]>
+
        * control.cpp: Since controls are UIElements we need to make sure
        their surface is set when we create them from XAML.
 

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-10-09 22:06:54 UTC (rev 87232)
+++ trunk/moon/src/xaml.cpp     2007-10-09 22:49:00 UTC (rev 87233)
@@ -1140,7 +1140,7 @@
 xaml_create_from_str (XamlLoader* loader, const char *xaml, bool 
create_namescope,
                      Type::Kind *element_type)
 {
-       XML_Parser p = XML_ParserCreateNS (NULL, '|');
+       XML_Parser p = XML_ParserCreateNS ("utf-8", '|');
        XamlParserInfo *parser_info = NULL;
        DependencyObject *res = NULL;
        char *start = (char*)xaml;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to