Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unacceptable character #x0000: control characters are not allowed #786

Open
versebuster opened this issue Nov 16, 2024 · 1 comment
Open
Labels

Comments

@versebuster
Copy link

Describe the bug
One of my files may have gotten corrupted during data transfer. Now when RedNotebook reads it, it crashes. If I remove the file from the directory RedNoteBook reads the files like normal.

To Reproduce

  1. Add file to directory
    2024-10.txt
  2. Start RedNoteBook
  3. Select Directory
  4. RedNoteBook Crashes

Expected behavior
The program starts normally or at least give an error of the bad file.

Screenshots
No screenshots

Versions:

  • RedNotebook version: 2.35 :
  • Operating system and version: Windows and Linux

Log output when reproducing bug

rednotebook.log

@jendrikseipp
Copy link
Owner

Thanks! I agree, corrupted files should not cause RedNotebook to crash. Instead, the corrupted file should be renamed to 2024-10_corrupted.txt, RedNotebook should start normally and an error message should be shown to the user telling them that "Month file /path/to/2024-10.txt could not be loaded, so it has been renamed to /path/to/2024-10_corrupted.txt. We recommend to close RedNotebook and manually copy parts from /path/to/2024-10_corrupted.txt to /path/to/2024-10.txt using a text editor."

Do you want to prepare a pull request in that direction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants