Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#127 Random parsing errors when file contains \r characters

open
nobody
None
5
2012-02-27
2012-02-27
Krešimir Špes
No

When I give tinyxml a file that contains '\r' characters alongside '\n' characters (aka files saved on windows), then in about 20% of the cases I get a random read failure in a random file at a random location. usually the error is reading element value.

tinyxml version: 2.6.2
os: MacOS 10.7.3, xcode 4.3, occurs on both gcc4.2 and llvm3.1 compilers

when I removed '\r' characters from the file prior to passing it to tinyxml, everything works as expected..

sorry I can't give more accurate repro steps :/ Any ideas what might cause this?

Discussion

  • M Sharath
    M Sharath
    2012-07-23

    I am a new software developer , i am willing to work on this if u assign it to me .

     
  • @msreddy: by all means, I won't mind :)