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

Files with Chinese character in name - issues reading and writing #2748

Open
brownbat opened this issue Feb 9, 2021 · 3 comments
Open

Files with Chinese character in name - issues reading and writing #2748

brownbat opened this issue Feb 9, 2021 · 3 comments

Comments

@brownbat
Copy link

brownbat commented Feb 9, 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. (Optionally -- confirm notepad.exe can open file and display contents.)
  7. Open file using Geany.

Expected:
See original lorem text.

Actual:
See empty file.
(Optionally -- 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   
---------------------------
  1. Close file without save.
  2. 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!

@elextr
Copy link
Member

elextr commented Feb 9, 2021

What locale is your system using? Does the problem persist if the locale is xx.UTF8?

@brownbat
Copy link
Author

brownbat commented Feb 9, 2021

Enabling the UTF locale beta setting is a viable workaround for me.

locale

Looks like that checkbox has caused problems with other apps for some people, so worth keeping an eye on.

Works for me so far though.

Thanks for the quick reply!

@codebrainz
Copy link
Member

Possibly related: #1095, #1076, #1278, #1534, #2660, #2652

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

No branches or pull requests

3 participants