Menu

#127 Random parsing errors when file contains \r characters

open
nobody
None
5
2012-02-27
2012-02-27
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 .

     
  • Krešimir Špes

    Krešimir Špes - 2012-07-23

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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.