mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
This modifies 40df0dc so that the changes it applies are only used
if ICU 67 or greater is used, and restores the previous code path for
versions of ICU below 67.
The minimum ICU version was bumped to 67 in Node.js 14.6.0 by
https://github.com/nodejs/node/pull/34356 but the referenced V8
commit[1] isn't on `v14.x-staging` and appears to have been reverted
on V8 8.4[2] so this PR also restores the minimum ICU version to 65.
[1] https://github.com/v8/v8/commit/611e412768a7bc87a20d0315635b0bf76a5bab46
[2] https://github.com/v8/v8/commit/eeccedee1882f1f870b37d12978cd818934b375d
PR-URL: https://github.com/nodejs/node/pull/39068
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Notes about the tools/icu subdirectory
This directory contains tools and information about the International Components for Unicode (ICU) integration. Both V8 and Node.js use ICU to provide internationalization functionality.
patches/are one-off patches, actually entire source file replacements, organized by ICU version number.icu_small.jsoncontrols the "small" (English only) ICU. It is input toicutrim.pyicu-generic.gypis the build file used for most ICU builds within ICU.icu-system.gypis an alternate build file used when--with-intl=system-icuis invoked. It builds against thepkg-configlocated ICU.iculslocs.ccis source for theiculslocsutility, invoked byicutrim.pyas part of repackaging. Not used separately. See source for more details.no-op.cccontains an empty function to convince gyp to use a C++ compiler.shrink-icu-src.pyis used during upgrade (see guide below).
Note:
The files in this directory were written for the Node.js v0.12 effort. The original intent was to merge the tools such as
icutrim.pyandiculslocs.ccback into ICU. ICU has gained its own “data slicer” tool. There is an issue open, https://github.com/nodejs/node/issues/25136 for replacingicutrim.pywith the ICU data slicer.
See Also
-
docs/guides/maintaining-icu.md for information on maintaining ICU in Node.js
-
docs/api/intl.md for information on the internationalization-related APIs in Node.js