[Github-comments] [geany/geany] Files with Chinese character in name - issues reading and writing (#2748)

Thomas Brownback notifications at xxxxx
Tue Feb 9 00:13:58 UTC 2021


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!



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2748
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210208/245160e2/attachment.htm>


More information about the Github-comments mailing list