fachat / XD2031

A filesystem server for Commodore 8-bit computers
18 stars 2 forks source link

Make ASCII/PETSCII conversions bijective #49

Closed nils-eilers closed 11 years ago

ghost commented 11 years ago

I think, that's not possible, because PETSCII has several ambigous code ranges: codes 192-223 as codes 96-127 codes 224-254 as codes 160-190 code 255 as code 126 Eg. after converting 'A' in (upper/lower case mode) from PETSCII to ASCII you don't know, wether the original code was 97 or 193, but it may be important if that character was part of a filename.

nils-eilers commented 11 years ago

Just thinking: are the conversions really required to be bijective? When using disk images, we can use FS_CHARSET, by consequence there won't be conversions. If we use something else, e.g. the PC server, we shouldn't have different kind of 'A's. I guess, we can close this issue.