v.1.37.1 on Win 10 (latest updates).
Steps to reproduce:
1. Create new text file tmp.txt. 2. Add "Lorem ipsum dolor sit amet," to the body and save. 3. (Optionally confirm UTF-8 encoding, this does not seem to be an internal encoding issue.) 4. (Optionally -- reopen file to confirm it is working as expected.) 5. Close file and rename to tmp子.txt (or several other Chinese characters... or hangul, such as tmp점.txt... maybe any non-latin?) 6. (Optional: Confirm notepad.exe can open file and display contents.) 7. Open file.
Expected: See original lorem input.
Actual: See empty file. (Can confirm encoding unchanged here.)
7b. Attempt to edit and save: --------------------------- Error --------------------------- Error saving file. Error opening file “<dir>\tmp?.txt”: Input/output error
The file on disk may now be truncated! --------------------------- OK ---------------------------
8. Close file without save. 9. Rename file to just "tmp.txt". Open file, see original input.
I searched for existing issues but might not have used the right keywords, sorry if this is a duplicate.
Hope this is helpful. Thanks for a great program!
What locale is your system using? Does the problem persist if the locale is xx.UTF8?
Enabling the UTF locale beta setting is a viable workaround for me.
![locale](https://user-images.githubusercontent.com/26754/107319672-47972780-6a6d-11eb...)
Looks like that checkbox has caused problems with other apps [for some people](https://stackoverflow.com/questions/56419639/what-does-beta-use-unicode-utf-...), so worth keeping an eye on.
Works for me so far though.
Thanks for the quick reply!
Possibly related: #1095, #1076, #1278, #1534, #2660, #2652
github-comments@lists.geany.org