Larger files (in this case > 1000 lines) still cannot be saved in some cases. Find and solve the issue of this behavior.
Analysis:
The issus are not the long files but characters, which are not compatible with standard ANSI encoding. If these are in the file, then std::ofstream will not write the currently passed string to the file. Because it might be difficult to detect these characters, implement an after-saving check of the written file and a backup functionality, which will keep the previous version of the file in a separate file for automatic restoring.
Implementation:
The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.
Documentation:
The fix was documented in the Changes log. Further documentation not needed.
Tests:
There are still cases, where a file cannot be saved, however, the user is now notified correspondingly. Therefore, this ticket may be considered as fixed.
Anonymous
Diff:
Diff:
Diff:
Diff: