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

A version of UTF8ArrayToString that takes a length instead of a null-terminated string #7029

Closed
haukex opened this issue Aug 22, 2018 · 1 comment
Labels

Comments

@haukex
Copy link
Contributor

@haukex haukex commented Aug 22, 2018

I was in a situation where I needed to be able to get UTF-8 strings with a known length and embedded NUL bytes from C. Since it didn't seem to be supported by the Emscripten libs, and I didn't want to patch them at the time, I wrote my own version of UTF8ArrayToString - but perhaps this can be integrated.

The code is at https://github.com/haukex/emperl5/blob/emperl_v5.28.0/common_preamble.js and the use is shown in https://github.com/haukex/emperl5/blob/emperl_v5.28.0/ext/WebPerl/WebPerl.xs#L42

This seems to be related to a suggestion in #4255 (and is perhaps related to #4693).

@stale
Copy link

@stale stale bot commented Sep 18, 2019

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

@stale stale bot added the wontfix label Sep 18, 2019
@stale stale bot closed this Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant