Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

*View All ThreadsShow in Flat Mode*


Subjectsetformat: extra &#13 character Reply to this message
Posted byzxycba
Posted on10/10/06 02:55 AM



I noticed one more problem in setformat, when you place the &#13&#10 inside the string specifier so that each entry is on a seperate line, the outputed file contains extra &#13 characters.

File: test.zip

Desc: test file

....

When you use WordPad to open the generated file, it displays the the lines as:

File: test.zip Desc: test file File: test2.zip Desc: test 2 file.......

Where notepad displays the file as:

File: test.zip
Desc: test file

File: test2.zip
Desc: test 2 file

If you open the resulting file in a hex editor you will see the extra &#13 character. It looks like this extra &#13 character is only outputed when &#10 is specified in the string specifier.

Changing the format of the string specifier to:

string="File: %f.zip
Desc: %d
"

Fixes the generated file to display correctly in WordPad.

File: test.zip
Desc: test file
....

Any ideas as to why using 
 adds this extra &#13 in the string specifier?



-
Entire Thread
Subject  Posted byPosted On
.setformat: extra &#13 character  zxycba10/10/06 02:55 AM
.*Re: setformat: extra character  Roman10/10/06 03:12 AM
..*Re: setformat: extra character  zxycba10/10/06 11:20 AM
...*Re: setformat: extra character  Roman10/10/06 11:24 AM
....*Re: setformat: extra character (update)  Roman10/10/06 12:57 PM
.....*Re: setformat: extra character (update)  zxycba10/12/06 09:51 PM