Support Unicode characters in FMU extraction paths on Windows - #216
Open
jschueller wants to merge 3 commits into
Open
Support Unicode characters in FMU extraction paths on Windows#216jschueller wants to merge 3 commits into
jschueller wants to merge 3 commits into
Conversation
Replace ANSI Win32 APIs with wide-character variants and add UTF-8/UTF-16 conversion helpers to handle paths containing Unicode characters. - jm_portability.c: Add jm_utf8_to_wide / jm_wide_to_utf8 helpers; use _wgetcwd for getcwd, _wchdir for chdir, _wmkdir for mkdir, _wmktemp for mkdtemp, GetTempPathW for temp dir, UrlCreateFromPathW for file URLs - fmi_miniunz.c: Use _wfopen for file opening, CreateFileW for file date changes, _wmkdir for directory creation, _wchdir for directory changes - fmi_minizip.c: Use _wfopen for file opening, FindFirstFileW for file time queries Closes modelon-community#208 Closes modelon-community#153 Closes modelon-community#91
jschueller
marked this pull request as ready for review
May 27, 2026 12:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace ANSI Win32 APIs with wide-character variants and add UTF-8/UTF-16 conversion helpers to handle paths containing Unicode characters.
Closes #208
Closes #153
Closes #91