[Mono-bugs] [Bug 533523] Mysterious bad string with System.Resources.ResXResourceWriter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 24 05:04:14 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=533523

User surfzoid2002 at yahoo.fr added comment
http://bugzilla.novell.com/show_bug.cgi?id=533523#c2





--- Comment #2 from Eric Petit <surfzoid2002 at yahoo.fr>  2009-10-24 03:04:11 MDT ---
Here it is an example :
I use an XML file to serialize some setting, if the XML file don't exist, the
first time so, it finish with an twice data, for example, if the end is
"<value>DejaVu Sans, 14pt</value></data>  </root>" Mono Write : " 
</root>14pt</value></data>  </root>" so after, each time i load or save this
file i have an error, if i delete the "14pt</value></data>  </root>" at the
end, no more problem !
Here it is the XML file whose Mono generated at the first time :

<?xml version="1.0" encoding="utf-8"?>
<root>
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xsd:element name="root" msdata:IsDataSet="true">
      <xsd:complexType>
        <xsd:choice maxOccurs="unbounded">
          <xsd:element name="data">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0"
msdata:Ordinal="1" />
                <xsd:element name="comment" type="xsd:string" minOccurs="0"
msdata:Ordinal="2" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1"
/>
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"
/>
              <xsd:attribute name="mimetype" type="xsd:string"
msdata:Ordinal="4" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="resheader">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0"
msdata:Ordinal="1" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" />
            </xsd:complexType>
          </xsd:element>
        </xsd:choice>
      </xsd:complexType>
    </xsd:element>
  </xsd:schema>
<resheader
name="resmimetype"><value>text/microsoft-resx</value></resheader><resheader
name="version"><value>1.3</value></resheader><resheader
name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089</value></resheader><resheader
name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089</value></resheader><data
name="helpToolStripMenuItem" type="System.Drawing.Font, System.Drawing,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"><value>DejaVu Sans, 14pt</value></data>
  <data name="menuToolStripMenuItem" type="System.Drawing.Font, System.Drawing,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"><value>DejaVu Sans, 14pt</value></data>
  <data name="displayToolStripMenuItem" type="System.Drawing.Font,
System.Drawing, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"><value>DejaVu Sans, 14pt</value></data>
  <data name="editToolStripMenuItem" type="System.Drawing.Font, System.Drawing,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"><value>DejaVu Sans, 14pt</value></data>
  </root>14pt</value></data>

  </root>

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list