Skip to content

Conversation

jtanx
Copy link
Contributor

@jtanx jtanx commented Mar 15, 2022

A long time ago, I raised a point that files cannot be opened if they contain characters outside the currently active codepage in #2290. Ever since, Windows builds have actually been running with a set of patches to make that work better.

Most of these changes were presented as part of #2299, but were never merged because the changes were quite invasive, and it was still a pain to deal with.

Since then, improvements have been made to Windows which means that you can basically force the application encoding to UTF-8, and all the standard functions will then just work normally, as you would expect, fixing the issue.

This is a much better solution than the one previously proposed, and means I can drop those custom patches going forward.

Closes #2290.

Type of change

  • Bug fix
  • New feature
  • Non-breaking change

This forces UTF-8 encoding by default on newer versions of Windows,
which fixes issues with accessing files containing characters
outside of the system's default locale/encoding.
@jtanx jtanx merged commit 22463f0 into fontforge:master Mar 22, 2022
@jtanx jtanx deleted the utf8 branch March 22, 2022 09:08
Omnikron13 pushed a commit to Omnikron13/fontforge that referenced this pull request May 31, 2022
This forces UTF-8 encoding by default on newer versions of Windows,
which fixes issues with accessing files containing characters
outside of the system's default locale/encoding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows: Cannot open/save files with paths/folders containing non-standard characters
1 participant