EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: Roman on 29 September 2012, 20:16

Title: cmpro 4.08a released
Post by: Roman on 29 September 2012, 20:16
4.08a

misc:  test if 7z/rar rename operation is available, otherwise it will be disabled automatically. You need to enabled it manually (if supported by 7z)...I may change that to auto-enable in the future.
fixed: rare obsolete missing but fixable chd message for sets without roms
fixed: workaround for 7z.exe no-file-in-archive corruption (e.g. after removing all files from it you were not able to add new files to it)
Title: Re: cmpro 4.08a released
Post by: yerduaz on 18 October 2012, 21:24
Hi Roman,

I have a problem when scanning a 7zip file containing a UTF-8 file (.dsk): clrmame will not recognize the name of the .dsk file (which is already correct) and will propose to rename this file. If confirmed, the renaming does not occur (so the .dsk file still has the correct name) and, therefore, clrmame will retry to rename this file again by the next scan...
Interestingly, the file name of the .7z file itself (also UTF-8) is recognized and doesn't make any problem.

This problem does not occur with zip or rar files.

Please find attached the concerned 7z file and the according dat file.
Sorry, don't know why but I currently get an error message when trying to upload any file...

Configuration:
clrmame 4.08a (64-bit)
7zip 9.25 alpha (64-bit)
Title: Re: cmpro 4.08a released
Post by: Roman on 19 October 2012, 05:11
well...I need the file somehow. try one of the million file hosters out there.
Title: Re: cmpro 4.08a released
Post by: yerduaz on 19 October 2012, 05:52
Hi Roman,

please find hereafter the files:
http://speedy.sh/QgUv5/clrmame-7z-utf8.7z (http://speedy.sh/QgUv5/clrmame-7z-utf8.7z)

Thank you for your help.
Title: Re: cmpro 4.08a released
Post by: Roman on 19 October 2012, 08:20
guess there is a small utf8 reading issue with the latest 7z...

wrong name: C:\Dokumente und Einstellungen\rs\Desktop\test\Advanced Destroyer Simulator (Francés) & Crete 1941 & Nebulus\Advanced Destroyer Simulator (Franc‚s) & Crete 1941 & Nebulus.dsk [wrong: Advanced Destroyer Simulator (Franc‚s) & Crete 1941 & Nebulus.ds [...]

Francés vs Franc‚s

I will check the 7z reader later tonight....
Title: Re: cmpro 4.08a released
Post by: oxyandy on 19 October 2012, 12:38
Oh, it looks like yerduaz beat me !  :o
Well, I will post anyway. ha
http://speedy.sh/uUUWZ/CMP-3.08a-7z-Unicode-Name-Reading-Fail.rar (http://speedy.sh/uUUWZ/CMP-3.08a-7z-Unicode-Name-Reading-Fail.rar)

Load this DAT Rebuild files in ZIP = No Problems
Scanner confirm Files Correct !

Load this DAT Rebuild files in 7z = No Problems
The Destination Folder has the Correct file names In & Out
Great !
BUT, Scanner says file names are not correct !

Quote
Do you want to rename the following wrong named ROMs?

O S bio dos Games - LeliJhon Tradu‡äes.txt ->
O Sábio dos Games - LeliJhon Traduções.txt

Allowing it to rename corrupts the archives - file loss.

So it looks like the Internal 7z file name reading routine of CMP,
is not recognising the correct file names..

Please fix.

Cheers
Andy
Title: Re: cmpro 4.08a released
Post by: Roman on 19 October 2012, 12:46
well..actually I use the 7z sdk code to get the name...
as I said...I will check it later...
Title: Re: cmpro 4.08a released
Post by: Roman on 19 October 2012, 20:57
well...doh...the new 7z sdk example code converts the utf16 filename in the file into a codepage encoded string...changed that to utf8 and the file is read correctly now...so you get a fix with the next version...