Online source repo munging binary files?
Rick Murray (539) 13840 posts |
With reference to: I know the Windows “Solitaire” (could have sworn that was a game with marbles) has some insane logic that if you pay attention, games are often winnable. Not so for RISC OS, but I was interested in seeing how the game logic worked. However, on FireFox and NetSurf both, the !RunImage comes through horribly horribly corrupt. Ditto the Sprites. Looking in the Sprites, I can see binary data is often in pairs with an “” as the first byte. This crops up a lot in the BASIC file too, along with its friend “Ô. PLEASE tell me the website isn’t applying a hamfisted UTF8 conversion to binary files!?!? |
Martin Bazley (331) 379 posts |
The website is applying a hamfisted UTF8 conversion to binary files. |
Rick Murray (539) 13840 posts |
Thanks for the pointer. Strange, though, for the CVS has marked the files as binary (ie you can only download, not view as text etc). Or do they need to be marked as binary somewhere else too? |
Rick Murray (539) 13840 posts |
Thankfully UTF8 is a reliably constant munging, therefore… http://www.heyrick.co.uk/random/deUTFify,ff8 Syntax is: It works as a stream filter, so the files cannot be the same. Filetypes are preserved. Note, however, it is not a full UTF8 decoder, it does only that which is necessary to decode the ROOL binaries (tested on various !Patience files). Anything else will throw a message, ignore the situation, and probably make a broken output file. [if this happens to an ROOL file, send me the |
Ben Avison (25) 445 posts |
The website is applying a hamfisted UTF8 conversion to binary files. #2 |