Skip to content

ports: handle temporary files path with non-ASCII characters on Windows - #6999

Merged
galad87 merged 1 commit into
HandBrake:masterfrom
galad87:widechar
Jul 8, 2025
Merged

galad87 merged 1 commit into
HandBrake:masterfrom
galad87:widechar

Conversation

@galad87

@galad87 galad87 commented Jun 28, 2025

Copy link
Copy Markdown
Contributor

Fix #6994.

Tested on:

  • Windows 10+ (via MinGW)
  • macOS 10.13+
  • Ubuntu Linux

@sr55

sr55 commented Jun 28, 2025

Copy link
Copy Markdown
Contributor

I think the part that's going to still catch us out is the upstream issues. I seem to recall libdvdread has issues for example.

I'll do some testing later on this as well.

@sr55 sr55 added the Bug label Jun 28, 2025
@sr55 sr55 added this to the 1.10.0 milestone Jun 28, 2025
@galad87

galad87 commented Jun 28, 2025

Copy link
Copy Markdown
Contributor Author

I think there is still some code around that converts from UTF-8 back to the internal Windows representation before passing paths to libdvdread, so it should still work.

@sr55

sr55 commented Jun 28, 2025

Copy link
Copy Markdown
Contributor

I can't recall, I think we spend time on that in the past trying to get it to work but I'm not convinced it was ever fixed.

Subtitle imports probably another one to check.

@galad87

galad87 commented Jun 29, 2025

Copy link
Copy Markdown
Contributor Author

I tried on Windows 11 and this PR made no difference, I created a user with a Japanese name, but it worked with and without the PR. However, the system language was set to English, maybe on a system set to Japanese a different encoding is used, I don't know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Path encoding bug: Fails to create temporary files on Windows when user profile path contains non-ASCII characters (e.g., Japanese)

2 participants