Closed gingerbeardman closed 3 years ago
Thanks for moving this thread to github. I'm considering closing down the sourceforge forum anyway since github is a better platform.
I could reproduce the problem with the MACLIFE-KT75.ISO
image, and I just pushed a fix to the 'proposed' branch. It was an issue with Apple Partition Map partition parsing which I haven't seen before.
Let me know if that fixes the issue for the remaining images or if there's more work to do. :)
I'll be happy to take a look, but not sure when I will be able to figure out how to build from source.
I just needed ant, so now I have built from source with the proposed
branch.
The problematic CD-ROM ISOs now open fine. 🎉
I'll test all my remaining ISOs soon.
But I'm still not seeing Japanese text as fixed in https://sourceforge.net/p/catacombae/bugs/5/ ?
Oh! Silly me. I need to manually select the encoding.
It would be great if this was automatic in some way?
Even just the ability to set Japanese as my default encoding would be fine.
Unfortunately HFS does not specify the encoding used on a volume (as far as I know at least) so selecting encoding automatically is tricky. One would have to scan the volume for filenames and use some heuristic way to figure out the most likely encoding. I don't know of a good way to do that at the moment so maybe an alternative approach would be to use the user's locale to select a default, e.g. MacJapanese if the locale is Japanese?
That's a reasonable suggestion but it would not help me as I hardly ever run as Japanese locale. It's not so bad as I only need to set Japanese encoding for the first disk and the preference persists across any further disks I open.
One more problematic CD-ROM ISO: https://archive.org/details/info-mac-may-1993-japanese
ISO Buster shows:
BasiliskII
mounts it OK.
file
just shows contents as "data" so even that does not recognise the disk type.
Not found any other apps that will mount/recognise it.
I just looked through old Mac OS X code and it does indeed look like the mount utility reads the user's locale and determines the HFS encoding based on that. So I don't think HFSExplorer can do any better unless we start storing preferences which I have avoided so far but since there is in fact a standard Java preferences API we could maybe consider using it to persist the default encoding setting.
Also: I'm currently downloading that problematic ISO, will check it when I have time.
I pushed another patch to allow parsing Apple Partition Map layouts with a broken Driver Descriptor Record (this was the case for INFO-MAC-MAY-1993-Japanese.iso
). Apparently this is considered acceptable since macOS doesn't complain when attaching such an ISO (512 byte sector size is probably implied then).
I'm hoping this doesn't lead to any regressions... there are so many quirks and weird cases with Apple Partition Map layouts and changing one aspect of partition system detection may impact another.
The only thing that remains is to refine the encoding selection somewhat.
I have now pushed an update saving the user's selection of HFS encoding and restoring it the next time the application is launched. Let me know how that works out for you @gingerbeardman.
Excellent! I'll continue to test disks but closing this one as done.
Thank you
I have some old HFS CD-ROM that cannot be opened.
In HFSExplorer: the Partition map is found:
then after pressing OK I get "could not open file".
Here is a link to one, though I have many more CD-ROMs that are like this: https://archive.org/details/maclife-kanjitalk-75
It also happens with CD-ROM without any strange encoding in the partition/volume names.
Since Catalina macOS is no longer able to open these old HFS CD-ROM so my current workaround is to mount them in an emulator (BasiliskII) to work with them, which is cumbersome. Of course I use HFSExplorer for some other HFS CD-ROM.
(They also have Japanese encoding but a fix for that is in the proposed branch)
ISO details:
Debug log below...