-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
src: remove icu based ToASCII
and ToUnicode
#55156
src: remove icu based ToASCII
and ToUnicode
#55156
Conversation
4e0a3da
to
a0a5680
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55156 +/- ##
=======================================
Coverage 88.40% 88.41%
=======================================
Files 653 653
Lines 187597 187502 -95
Branches 36112 36097 -15
=======================================
- Hits 165850 165781 -69
+ Misses 14967 14961 -6
+ Partials 6780 6760 -20
|
a0a5680
to
e59a0cc
Compare
e59a0cc
to
8e4ec9f
Compare
cc @nodejs/cpp-reviewers can you review? |
This appears to have broken the build when Node.js is configured with 21:54:07 In file included from ../deps/icu-small/source/common/unicode/platform.h:25,
21:54:07 from ../deps/icu-small/source/common/unicode/ptypes.h:46,
21:54:07 from ../deps/icu-small/source/common/unicode/umachine.h:46,
21:54:07 from ../deps/icu-small/source/common/unicode/utypes.h:38,
21:54:07 from ../deps/icu-small/source/common/unicode/ucnv_err.h:88,
21:54:07 from ../deps/icu-small/source/common/unicode/ucnv.h:51,
21:54:07 from ../src/node_i18n.h:34,
21:54:07 from ../src/node_i18n.cc:43:
21:54:07 ../src/node_i18n.cc: In function 'bool node::i18n::InitializeICUDirectory(const std::string&, std::string*)':
21:54:07 ../deps/icu-small/source/common/unicode/urename.h:900:54: error: 'udata_setCommonData_75' was not declared in this scope; did you mean 'udata_setCommonData'?
21:54:07 900 | #define udata_setCommonData U_ICU_ENTRY_POINT_RENAME(udata_setCommonData)
21:54:07 | ^~~~~~~~~~~~~~~~~~~
21:54:07 ../deps/icu-small/source/common/unicode/uvernum.h:121:50: note: in definition of macro 'U_DEF_ICU_ENTRY_POINT_RENAME'
21:54:07 121 | # define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
21:54:07 | ^
21:54:07 ../deps/icu-small/source/common/unicode/uvernum.h:123:47: note: in expansion of macro 'U_DEF2_ICU_ENTRY_POINT_RENAME'
21:54:07 123 | # define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
21:54:07 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21:54:07 ../deps/icu-small/source/common/unicode/urename.h:900:29: note: in expansion of macro 'U_ICU_ENTRY_POINT_RENAME'
21:54:07 900 | #define udata_setCommonData U_ICU_ENTRY_POINT_RENAME(udata_setCommonData)
21:54:07 | ^~~~~~~~~~~~~~~~~~~~~~~~
21:54:07 ../src/node_i18n.cc:555:5: note: in expansion of macro 'udata_setCommonData'
21:54:07 555 | udata_setCommonData(&SMALL_ICUDATA_ENTRY_POINT, &status);
21:54:07 | ^~~~~~~~~~~~~~~~~~~
21:54:07 make[2]: *** [libnode.target.mk:527: /home/iojs/build/workspace/node-test-commit-linux-containered/out/Release/obj.target/libnode/src/node_i18n.o] Error 1 which is coming from the Lines 550 to 556 in 8e4ec9f
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow
dee0c58
to
41641f7
Compare
Landed in 9f5000e |
PR-URL: #55156 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Richard Lau <rlau@redhat.com>
PR-URL: nodejs#55156 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Richard Lau <rlau@redhat.com>
PR-URL: nodejs#55156 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Richard Lau <rlau@redhat.com>
We have been using Ada's ToASCII and ToUnicode implementations since Node 18. I think it's safe to assume we can remove this "unused" code.