Skip to content
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

UTF-8 path not supported on Windows #1809

Closed
WinstonMao opened this issue Nov 21, 2023 · 2 comments
Closed

UTF-8 path not supported on Windows #1809

WinstonMao opened this issue Nov 21, 2023 · 2 comments
Labels
area-Windowing bug Something isn't working

Comments

@WinstonMao
Copy link
Contributor

Summary

Hello,
When I dragged a file with the UTF-8 characters into the SDL window, it returned a wrong path.
It seems to only return the wrong path under Windows, and it works fine under Mac OS.

Steps to reproduce

  • Platform: Windows 10 Enterprise LTSC 1809
  • Framework Version: .NET6
  • API: Silk.NET.Windowing
  • API Version: 2.18
  1. Drop the File named with UTF-8 characters to the SDL window. It returns a wrong path.

  2. Inspired by SDL2-CS, I modified the source code of "SdlWindow.cs" and got the following result:
    utf-8-path-error

  3. And here is the file named with UTF-8 characters:
    测试.txt

@WinstonMao WinstonMao added the bug Something isn't working label Nov 21, 2023
@Perksey
Copy link
Member

Perksey commented Nov 21, 2023

Good spot, we’d welcome PRs here.

@Perksey
Copy link
Member

Perksey commented Dec 12, 2023

Closed by #1810 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windowing bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants