Skip to content

Replace ANSI Win32 API calls with UTF-16; convert UTF-8 at boundary.#5227

Merged
alexreinking merged 1 commit intomasterfrom
win32/encodings
Aug 31, 2020
Merged

Replace ANSI Win32 API calls with UTF-16; convert UTF-8 at boundary.#5227
alexreinking merged 1 commit intomasterfrom
win32/encodings

Conversation

@alexreinking
Copy link
Member

We should rethink the placement of the current directory code in LLVM_Output.cpp. That would let me reuse the code in from_utf8 and from_utf16.

Fixes #5223

@shoaibkamil
Copy link
Contributor

LGTM, thanks for doing this! I'll just ping @slomp to take a look as well, since he's much more experienced with Windows.

@alexreinking alexreinking requested a review from slomp August 30, 2020 20:09
Copy link
Contributor

@slomp slomp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@alexreinking alexreinking merged commit c097aac into master Aug 31, 2020
@steven-johnson
Copy link
Contributor

We should rethink the placement of the current directory code in LLVM_Output.cpp. That would let me reuse the code in from_utf8 and from_utf16.

I would endorse moving these (and all other pathname/filesystem stuff) into Util.h, or better yet, creating a new FSUtil.h that owns all this stuff that somehow posix still can't deal with adequately...

@alexreinking alexreinking deleted the win32/encodings branch February 14, 2021 02:47
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.

Halide Util.cpp uses Win32 functions that are not encoding-safe

4 participants