diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-02-24 17:57:45 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2017-02-28 18:32:01 -0800 |
commit | c2a302c50b3787666339371140ad2c13d50d817a (patch) | |
tree | e5cc9f551860b3c55741ae11a5b466f2e1f0a503 /src/node_i18n.h | |
parent | a52050877c91509f654dd6b2519c0132b7792578 (diff) | |
download | android-node-v8-c2a302c50b3787666339371140ad2c13d50d817a.tar.gz android-node-v8-c2a302c50b3787666339371140ad2c13d50d817a.tar.bz2 android-node-v8-c2a302c50b3787666339371140ad2c13d50d817a.zip |
src: do not ignore IDNA conversion error
Old behavior can be restored using a special `lenient` mode, as used in
the legacy URL parser.
PR-URL: https://github.com/nodejs/node/pull/11549
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_i18n.h')
-rw-r--r-- | src/node_i18n.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node_i18n.h b/src/node_i18n.h index 21567eeb3e..270eb1f3d1 100644 --- a/src/node_i18n.h +++ b/src/node_i18n.h @@ -18,10 +18,12 @@ bool InitializeICUDirectory(const std::string& path); int32_t ToASCII(MaybeStackBuffer<char>* buf, const char* input, - size_t length); + size_t length, + bool lenient = false); int32_t ToUnicode(MaybeStackBuffer<char>* buf, const char* input, - size_t length); + size_t length, + bool lenient = false); } // namespace i18n } // namespace node |