locked
SharpSerializer port: XmlSerialization - Bug in Mono < 3.0 RRS feed

  • Question

  • User119 posted

    SharpSerializer port: XmlSerialization - Bug in Mono < 3.0

    During port of SharpSerializer to Mono mobile platforms our team has encountered bug in Xml Serialization of '\t' character in mono versions prior to 3.0

    Samples:

    Reduced version

    netfx

        Both files have the same length of 430 bytes and the same content
        Both files have the same length of 267 bytes and the same content
        Both files have the same length of 288 bytes and the same content
        Bress Anny Key West!!!!!
    

    mono 2.10.8

        Files differ at offset 284
        Both files have the same length of 267 bytes and the same content
        Both files have the same length of 288 bytes and the same content
        Press any key to continue . . .
    

    mono 3.0.1

        Both files have the same length of 430 bytes and the same content
        Both files have the same length of 267 bytes and the same content
        Both files have the same length of 288 bytes and the same content
        Press any key to continue . . .
    

    xml file line 6

    xml code

    <Complex name="Root" type="HelloWorldApp.BusinessObjects.RootContainer, HelloWorldApp.Console, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
      <Properties>
        <SingleArray name="SingleArrayOfChars">
          <Items>
            <Simple value="o" />
            <Simple value=" " />
            <Simple value="&#xA;" />
            <Simple value="&amp;#x0;" />
          </Items>
        </SingleArray>
      </Properties>
    </Complex>
    

    Original xml file

    xml file line 63

    xml code

    <SingleArray name="SingleArrayOfChars">
      <Items>
        <Simple value="o" />
        <Simple value=" " />
        <Simple value="&#xA;" />
        <Simple value="&amp;#x0;" />
      </Items>
    </SingleArray>
    
    Wednesday, April 17, 2013 12:12 PM

All replies

  • User119 posted

    MacOSX tests Application output

    errors are from unchanged SharpSerializet test which launches Windows Explorer

    2.10.11

    Files differ at offset 279
    The files /Users/mc/Desktop/src/libraries-holisticware/git[github.com]/MonoVersalSharpSerializer/HelloWorldApp.Console.BugXmlSerializationInMono/bin/Debug/explorer, /n,, and /select, do not exist.
    Both files have the same length of 267 bytes and the same content
    Both files have the same length of 288 bytes and the same content
    Bress Anny Key West!!!!!
    The files /Users/mc/Desktop/src/libraries-holisticware/git[github.com]/MonoVersalSharpSerializer/HelloWorldApp.Console.BugXmlSerializationInMono/bin/Debug/explorer, /n,, and /select, do not exist.
    The files /Users/mc/Desktop/src/libraries-holisticware/git[github.com]/MonoVersalSharpSerializer/HelloWorldApp.Console.BugXmlSerializationInMono/bin/Debug/explorer, /n,, and /select, do not exist.
    

    3.0.8

    Both files have the same length of 430 bytes and the same content
    Both files have the same length of 267 bytes and the same content
    The files /Users/mc/Desktop/src/libraries-holisticware/git[github.com]/MonoVersalSharpSerializer/HelloWorldApp.Console.BugXmlSerializationInMono/bin/Debug/explorer, /n,, and /select, do not exist.
    Both files have the same length of 288 bytes and the same content
    The files /Users/mc/Desktop/src/libraries-holisticware/git[github.com]/MonoVersalSharpSerializer/HelloWorldApp.Console.BugXmlSerializationInMono/bin/Debug/explorer, /n,, and /select, do not exist.
    Bress Anny Key West!!!!!
    The files /Users/mc/Desktop/src/libraries-holisticware/git[github.com]/MonoVersalSharpSerializer/HelloWorldApp.Console.BugXmlSerializationInMono/bin/Debug/explorer, /n,, and /select, do not exist.
    
    Wednesday, April 17, 2013 12:41 PM
  • User119 posted

    Added bug

    https://bugzilla.xamarin.com/show_bug.cgi?id=11822

    Wednesday, April 17, 2013 12:43 PM