Skip to content

msys_path_conv: handle leading UTF-8 characters correctly - #353

Open
dscho wants to merge 1 commit into
msys2-3.6.10from
handle-leading-utf8-character-correctly-in-path-conv
Open

msys_path_conv: handle leading UTF-8 characters correctly#353
dscho wants to merge 1 commit into
msys2-3.6.10from
handle-leading-utf8-character-correctly-in-path-conv

Conversation

@dscho

@dscho dscho commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

When a non-ASCII character is at the beginning of a path, the current conversion destroys the path. This fix will prevent this with an extra check for non-ASCII UTF-8 characters.

This is the last hold-over of Git for Windows' patches that were originally blocking mingw-w64-git from being upstreamed to the MSYS2 project. I believe that this patch is still relevant, even if it is not required to pass Git's test suite.

…2 apps

When a non-ASCII character is at the beginning of a path, the current
conversion destroys the path. This fix will prevent this with an extra
check for non-ASCII UTF-8 characters.

Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: 마누엘 <nalla@hamal.uberspace.de>
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.

1 participant