FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: warn about odd UTF-16 decoding function signature by addaleax · Pull Request #22623 · nodejs/node · GitHub

/ node Public

src: warn about odd UTF-16 decoding function signature - #22623

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:warn-utf16-api
Closed

src: warn about odd UTF-16 decoding function signature#22623
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:warn-utf16-api

Conversation

Copy link
Copy Markdown
Member

Using a uint16_t sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Using a `uint16_t` sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.
addaleax added c++ Issues and PRs that require attention from people who are familiar with C++. doc Issues and PRs related to the documentations. labels Aug 31, 2018

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added buffer Issues and PRs related to the buffer subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. labels Aug 31, 2018
addaleax added encoding Issues and PRs related to the TextEncoder and TextDecoder APIs. and removed buffer Issues and PRs related to the buffer subsystem. labels Aug 31, 2018

Copy link
Copy Markdown
Member Author

addaleax commented Sep 2, 2018

Copy link
Copy Markdown
Member Author

addaleax added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Sep 2, 2018

addaleax commented Sep 2, 2018
edited
Loading

Copy link
Copy Markdown
Member Author

Resume CI: https://ci.nodejs.org/job/node-test-pull-request/16965/ (:heavy_check_mark:)

addaleax commented Sep 2, 2018
edited
Loading

Copy link
Copy Markdown
Member Author

targos commented Sep 2, 2018

Copy link
Copy Markdown
Member

I don't understand why a new resume is needed? https://ci.nodejs.org/job/node-test-pull-request/16965/ looks good so far.

addaleax commented Sep 2, 2018

Copy link
Copy Markdown
Member Author

@targos Oops, I think I meant to resume another build.

addaleax commented Sep 3, 2018

Copy link
Copy Markdown
Member Author

Landed in 6455bea

addaleax closed this Sep 3, 2018
addaleax deleted the warn-utf16-api branch September 3, 2018 20:33
addaleax added a commit that referenced this pull request Sep 3, 2018
Using a `uint16_t` sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.

PR-URL: #22623
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
addaleax added a commit that referenced this pull request Sep 3, 2018
Using a `uint16_t` sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.

PR-URL: #22623
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
targos pushed a commit that referenced this pull request Sep 5, 2018
Using a `uint16_t` sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.

PR-URL: #22623
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
targos pushed a commit that referenced this pull request Sep 6, 2018
Using a `uint16_t` sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.

PR-URL: #22623
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. doc Issues and PRs related to the documentations. encoding Issues and PRs related to the TextEncoder and TextDecoder APIs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL