-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally trust the C API to always receive valid UTF-8 (#597)
This adds a new feature to the C API that allows it to skip UTF-8 validation on strings passed to it. Depending on where the C API is used from you may always be sure that valid UTF-8 strings are being passed, so no additional validation should be necessary. On top of that since we always know that the strings passed from JavaScript in the web are going to be valid UTF-8, the validation is always skipped there.
- Loading branch information
Showing
4 changed files
with
38 additions
and
257 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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