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

Fix filename encoding for Windows #9

Merged
merged 1 commit into from Dec 30, 2020
Merged

Conversation

stephanm
Copy link

This fixes filename encodings for files opened by tclcurl under Windows (e.g. when redirecting stderr to a file).
Tcl encodes strings internally as UTF-8, so using fopen() is OK on virtually all unix-like OSs. On Windows filenames have to be in the current system encoding (8 bit values) or wchar_t when UNICODE / _UNICODE is defined. This converts UTF-8 to UTF-16 so characters outside of ASCII can be used.

@stephanm
Copy link
Author

stephanm commented Apr 3, 2020

Hi,
would it be possible to get this merged?
Thanks!
Stephan

@bovine bovine merged commit 7a14cad into flightaware:master Dec 30, 2020
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.

None yet

2 participants