Skip to content

[mono] win32 implementation of g_get_current_dir #58523

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

Merged

Conversation

radekdoulik
Copy link
Member

Fix #56163

The getcwd call is returning the string encoded in system character
encoding.

Use native GetCurrentDirectoryW call instead and convert to utf-8.

Fix dotnet#56163

The getcwd call is returning the string encoded in system character
encoding instead of utf-8.

Use native GetCurrentDirectoryW call instead and convert to utf-8.
@ghost
Copy link

ghost commented Sep 1, 2021

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix #56163

The getcwd call is returning the string encoded in system character
encoding.

Use native GetCurrentDirectoryW call instead and convert to utf-8.

Author: radekdoulik
Assignees: -
Labels:

area-VM-meta-mono

Milestone: -

@radical
Copy link
Member

radical commented Sep 1, 2021

Can we add a specific test for this?

@lambdageek
Copy link
Member

/backport to release/6.0

@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2021

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1194243207

@radekdoulik radekdoulik merged commit 6f68bbd into dotnet:main Sep 2, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET 6 Android AOT fails on certain folder names
3 participants