Pascal files must have the high bit off. Now clearing the high bit. Reverting prior change since that was just the symptom and not a bug, per se.

This commit is contained in:
Rob Greene
2025-07-13 12:19:57 -05:00
parent dca33021b7
commit 6c2be6ddfb
@@ -316,7 +316,7 @@ public class PascalFileEntry implements FileEntry {
ByteArrayOutputStream buf = new ByteArrayOutputStream(data.length);
int index = 0;
while (index < data.length) {
byte b = data[index];
byte b = AppleUtil.clearBit(data[index], 7);
if (b == CR || b == LF) {
buf.write(CR);
index++;
@@ -362,7 +362,7 @@ public class PascalFileEntry implements FileEntry {
private int findEOL(byte[] data, int offset) throws DiskFullException {
int i = offset + 1022;
while (i > offset) {
if ((data[i] & 0x7f) == 13) {
if (data[i] == 13) {
return i;
}
i--;