mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2026-04-19 10:41:26 +00:00
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:
+2
-2
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user