mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
net: use icu's punycode implementation
ICU has a punycode implementation built in. Use it instead of the javascript implementation because it's much faster. PR-URL: https://github.com/nodejs/node/pull/7355 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
1 parent
3d6a01ed3e
commit
7de59ef925
6 files changed
+291
-12
No files matched your search
@@ -37,8 +37,7 @@
|
||||
'defines': [
|
||||
# ICU cannot swap the initial data without this.
|
||||
# http://bugs.icu-project.org/trac/ticket/11046
|
||||
'UCONFIG_NO_LEGACY_CONVERSION=1',
|
||||
'UCONFIG_NO_IDNA=1',
|
||||
'UCONFIG_NO_LEGACY_CONVERSION=1'
|
||||
],
|
||||
}],
|
||||
],
|
||||
@@ -428,9 +427,6 @@
|
||||
#'<(icu_path)/source/common/ubidi_props_data.h',
|
||||
# and the callers
|
||||
'<(icu_path)/source/common/ushape.cpp',
|
||||
'<(icu_path)/source/common/usprep.cpp',
|
||||
'<(icu_path)/source/common/uts46.cpp',
|
||||
'<(icu_path)/source/common/uidna.cpp',
|
||||
]}],
|
||||
[ 'icu_ver_major == 57', { 'sources!': [
|
||||
# work around http://bugs.icu-project.org/trac/ticket/12451
|
||||
@@ -447,9 +443,6 @@
|
||||
#'<(icu_path)/source/common/ubidi_props_data.h',
|
||||
# and the callers
|
||||
'<(icu_path)/source/common/ushape.cpp',
|
||||
'<(icu_path)/source/common/usprep.cpp',
|
||||
'<(icu_path)/source/common/uts46.cpp',
|
||||
'<(icu_path)/source/common/uidna.cpp',
|
||||
]}],
|
||||
[ 'OS == "solaris"', { 'defines': [
|
||||
'_XOPEN_SOURCE_EXTENDED=0',
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"region": "none",
|
||||
"zone": "locales",
|
||||
"converters": "none",
|
||||
"stringprep": "none",
|
||||
"stringprep": "locales",
|
||||
"translit": "none",
|
||||
"brkfiles": "none",
|
||||
"brkdict": "none",
|
||||
@@ -34,7 +34,6 @@
|
||||
"remove": [
|
||||
"cnvalias.icu",
|
||||
"postalCodeData.res",
|
||||
"uts46.nrm",
|
||||
"genderList.res",
|
||||
"brkitr/root.res",
|
||||
"unames.icu"
|
||||
|
||||
Reference in new issue
Block a user