Skip to content

Support Unicode characters in FMU extraction paths on Windows - #216

Open
jschueller wants to merge 3 commits into
modelon-community:masterfrom
jschueller:unicode
Open

Support Unicode characters in FMU extraction paths on Windows#216
jschueller wants to merge 3 commits into
modelon-community:masterfrom
jschueller:unicode

Conversation

@jschueller

Copy link
Copy Markdown
Contributor

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 #208
Closes #153
Closes #91

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
jschueller marked this pull request as ready for review May 27, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant