Skip to content

Commit 1d73914

Browse files
committed
[protocol][fs] fix line ending for non-atari systems.
1 parent fa35a49 commit 1d73914

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/device/rs232/network.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rs232Network::rs232Network()
5555
transmitBuffer->clear();
5656
specialBuffer->clear();
5757

58-
json.setLineEnding("\x9B"); // use ATASCII EOL for JSON records
58+
json.setLineEnding("\r\n"); // use ATASCII EOL for JSON records
5959
}
6060

6161
/**

lib/network-protocol/FS.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ bool NetworkProtocolFS::open_file()
7474
bool NetworkProtocolFS::open_dir()
7575
{
7676
openMode = DIR;
77+
#ifndef BUILD_ATARI
78+
this->setLineEnding("\r\n");
79+
#endif /* BUILD_RS232 */
7780
dirBuffer.clear();
7881
dirBuffer.shrink_to_fit();
7982
update_dir_filename(opened_url);

0 commit comments

Comments
 (0)