Skip to content

[RFC] export WTF8 conversion utilities#4021

Merged
vtjnash merged 6 commits intolibuv:v1.xfrom
vtjnash:jn/wtf8-export
Oct 29, 2023
Merged

[RFC] export WTF8 conversion utilities#4021
vtjnash merged 6 commits intolibuv:v1.xfrom
vtjnash:jn/wtf8-export

Conversation

@vtjnash
Copy link
Copy Markdown
Member

@vtjnash vtjnash commented May 23, 2023

As promised in #2970, this attempts to migrate code to a common set of utilities in a common place in the code and use them everywhere. This also exports the functionality, since the Windows API with WideCharToMultiByte is fairly verbose relative to what libuv and libuv's clients typically need, so it is useful not to require clients to reimplement this conversion logic unnecessarily (and because Windows is not 64-bit ready here, but this implementation is.)

@vtjnash

This comment was marked as outdated.

@santigimeno
Copy link
Copy Markdown
Member

I'm fine with adding this, it seems useful. What's left to have this ready? I guess we should add some tests for the new methods?

@vtjnash
Copy link
Copy Markdown
Member Author

vtjnash commented Jul 13, 2023

More tests are probably always good, but this is mostly about using the new code everywhere (covered by existing tests) and then making it exported also just because it requires no extra work to do so.

@vtjnash
Copy link
Copy Markdown
Member Author

vtjnash commented Jul 20, 2023

Are you fine with this API?

@trevnorris
Copy link
Copy Markdown
Member

I'm fine with this API.

@vtjnash vtjnash merged commit f388908 into libuv:v1.x Oct 29, 2023
@vtjnash vtjnash deleted the jn/wtf8-export branch October 30, 2023 14:02
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.

3 participants