Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

*View All ThreadsShow in Flat Mode*


SubjectRe: setformat: extra character Reply to this message
Posted byzxycba
Posted on10/10/06 11:20 AM



> Get a real editor 8)
>
> It's the old story of ANSI / DOS Format. Some editors don't understand a single
> 0xa etc., others do.
> I prefer TextPad (and notepad for smaller stuff) and both work fine with the
> current linefeed/newline commands.
>
I would expect Clrmame Pro to output both the string format and the seperator format the same. But if you specify &#10 in the string format, it adds an extra &#13 character before the &#10 character in the generated file.

Place the following tests into setformat01.xml:

<SetFormat>
<Format name="Test 1 &#13&#10" pre="" post="" separator="&#13;&#10;" string="Test 1&#13;&#10;"/>
<Format name="Test 2 &#10" pre="" post="" separator="&#13;&#10;" string="Test 2&#10;"/>
</SetFormat>

Scan a collection in Clrmame Pro, and use the export set list to output both formats. Then use a hex editor to open both files.

The Test 1 generated file looks like:

54 65 73 74 20 31 0d 0d 0a 0d 0a

when it should have been generated as:

54 65 73 74 20 31 0d 0a 0d 0a

The Test 2 generated file looks like:

54 65 73 74 20 32 0d 0a 0d 0a

when it should have been generated as:

54 65 73 74 20 32 0a 0d 0a

It's just strange that the 'separator' gets output correctly, while the 'string' contains an extra &#13 in these two tests.



-
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