EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Using "Rename Profile" causes XML dat corruption  (Read 7026 times)

Starshadow

  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 42
  • Operating System:
  • Linux Linux
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
Using "Rename Profile" causes XML dat corruption
« on: 28 November 2012, 16:04 »

After renaming an XML dat profile via right-click -> "Rename Profile" in the Profiler window, the XML dat becomes corrupted and the profile will no longer load properly. This image shows the original dat on the left, and the same dat after being renamed on the right. The problem is the duplicated tags and extra </header> tag after the first </header> tag. Manually removing these repairs the dat. Non-XML dats are not affected. I am using clrmamepro 4.08b x64 on Windows 7 x64.

If I could throw in a somewhat related feature request: it would be nice if upon updating a previously renamed profile with a new dat version, the custom profile name was carried over after the update. Currently the profile name is overridden by the new dat, and any custom name must be re-entered.

Thanks!
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 23.0.1271.91 Chrome 23.0.1271.91
    • View Profile
Logged

Starshadow

  • Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 42
  • Operating System:
  • Linux Linux
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
Re: Using "Rename Profile" causes XML dat corruption
« Reply #2 on: 29 November 2012, 00:11 »

use this:
http://mamedev.emulab.it/clrmamepro/binaries/cmpro20121128.rar

You got it! That build does not cause the corruption. Thanks for the quick fix.
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
    • .
Re: Using "Rename Profile" causes XML dat corruption
« Reply #3 on: 30 November 2012, 00:07 »

I saw the Topic Title and knew of this 'bug'...

The List of Profiles, does not show the Unicode Dat names,
I went to rename one once to it's correct name and learnt of it..

Downloading it now to see if this is the same..

Still the same, a DAT with a Unicode description doesn't display the correct name.
« Last Edit: 30 November 2012, 00:11 by oxyandy »
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
    • .
Re: Using "Rename Profile" causes XML dat corruption
« Reply #4 on: 30 November 2012, 00:19 »

Test Dat


The description is 哈哈哈
But shows as 'see pic'

« Last Edit: 18 April 2013, 01:22 by oxyandy »
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
    • .
A Wise man once said, A picture tells a 1000 words..
« Reply #5 on: 30 November 2012, 05:13 »


Enough said,

Thanks.
Hope Mrs & Baby are doing well !
« Last Edit: 18 April 2013, 01:22 by oxyandy »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 23.0.1271.95 Chrome 23.0.1271.95
    • View Profile
Re: Using "Rename Profile" causes XML dat corruption
« Reply #6 on: 30 November 2012, 08:08 »

oxyandy, so what are you reporting? A display issue for utf8 dat descriptions in the profiler? ...and a request to make the compressor settings wider?
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
    • .
Re: Using "Rename Profile" causes XML dat corruption
« Reply #7 on: 30 November 2012, 08:37 »

Hi Roman,
Yes both,
1. Please slightly widen the Compressor settings dialogue.
2. Please see what you can do about making UTF-8 descriptions show in profiler..

Thanks
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 23.0.1271.95 Chrome 23.0.1271.95
    • View Profile
Re: Using "Rename Profile" causes XML dat corruption
« Reply #8 on: 30 November 2012, 08:49 »

ok...can't promise to show something today...more likely next week.....
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
    • .
Re: Using "Rename Profile" causes XML dat corruption
« Reply #9 on: 30 November 2012, 09:15 »

Ah.. such minor things...
Just tack them onto the end of your 'to do list'
 :P
and thanks..
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 23.0.1271.95 Chrome 23.0.1271.95
    • View Profile
Re: Using "Rename Profile" causes XML dat corruption
« Reply #10 on: 30 November 2012, 20:27 »

Your dat does not have an utf8-bom....
(use e.g. notepad++ to save it as utf8 (with bom) and it shows up fine in the profiler)

It's an old style dat (not xml), so it needs a bom....only XML files are taken as utf8 by default...
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 17.0 Firefox 17.0
    • View Profile
    • .
Re: Using "Rename Profile" causes XML dat corruption
« Reply #11 on: 01 December 2012, 10:49 »

Ah ok, yes that works !
thanks for the work around,
sorry I had not tried with BOM before..

Bye
Logged
Pages: [1]   Go Up
 

Page created in 0.19 seconds with 20 queries.

anything
anything