|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #59238] load variables from file: the next saving operation produces a faulty file |
Date: | Tue, 20 Oct 2020 13:16:48 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36 |
Follow-up Comment #10, bug #59238 (project octave): @Markus: Thanks for creating a minimal example. Can you try using binary format? This should resolve the issue. If it does, it would also be a simple patch for the symbolic package to use the "-binary" option. There is certainly an issue to address here, but it is also a failing code pattern to rely on defaults (like -text with only LF endings) when those defaults are not guaranteed. Simple test: cell_str = {"This\nis\na\ntest."}; save cell_str_text.txt cell_str -binary cell_str2 = cell_str; load cell_str_text.txt isequal (cell_str, cell_str2) Also, could you upload the file "cell_str_text.txt"? I'd like to take a look at the contents and the line endings. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59238> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |