You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remove TODOs: the one about defaults has been
addressed, and the one about testing is a work
item that doesn't belong in a doc.
- add some background information
Fixes: #7843
PR-URL: #16939
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Copy file name to clipboardexpand all lines: tools/icu/README.md
+34-27
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,15 @@
1
-
# Notes about the icu directory.
1
+
# Notes about the `tools/icu` subdirectory
2
+
3
+
This directory contains tools, data, and information about the [http://icu-project.org](ICU) (International Components for Unicode) integration. ICU is used to provide internationalization functionality.
4
+
5
+
-`patches/` are one-off patches, actually entire source file replacements, organized by ICU version number.
6
+
-`icu_small.json` controls the "small" (English only) ICU. It is input to `icutrim.py`
7
+
-`icu-generic.gyp` is the build file used for most ICU builds within ICU. <!-- have fun -->
8
+
-`icu-system.gyp` is an alternate build file used when `--with-intl=system-icu` is invoked. It builds against the `pkg-config` located ICU.
9
+
-`iculslocs.cc` is source for the `iculslocs` utility, invoked by `icutrim.py` as part of repackaging. Not used separately. See source for more details.
10
+
-`no-op.cc` — empty function to convince gyp to use a C++ compiler.
11
+
-`README.md` — you are here
12
+
-`shrink-icu-src.py` — this is used during upgrade (see guide below)
2
13
3
14
## How to upgrade ICU
4
15
@@ -12,13 +23,13 @@
12
23
make
13
24
```
14
25
15
-
(The equivalent `vcbuild.bat` commands should work also. Note that we use the `.tgz` and not the `.zip` here,
16
-
that is because of line endings.)
26
+
> _Note_ in theory, the equivalent `vcbuild.bat` commands should work also,
27
+
but the commands below are makefile-centric.
17
28
18
-
-(note- may need to make changes in `icu-generic.gyp` or `tools/icu/patches` for
19
-
version specific stuff)
29
+
-If there are ICU version-specific changes needed, you may need to make changes in `icu-generic.gyp` or add patch files to `tools/icu/patches`.
30
+
- Specifically, look for the lists in `sources!` in the `icu-generic.gyp` for files to exclude.
(should return your updated ICU version number, and also `January` again.)
71
+
(This should print your updated ICU version number, and also `January` again.)
62
72
63
-
-You are ready to check in the updated `deps/small-icu`.
64
-
This is a big commit, so make this a separate commit from other changes.
73
+
You are ready to check in the updated `deps/small-icu`. This is a big commit,
74
+
so make this a separate commit from the smaller changes.
65
75
66
76
- Now, rebuild the Node license.
67
77
@@ -85,30 +95,27 @@ make test-ci
85
95
86
96
- commit the change to `configure` along with the updated `LICENSE` file.
87
97
98
+
- Note: To simplify review, I often will “pre-land” this patch, meaning that I run the patch through `curl -L https://github.com/nodejs/node/pull/xxx.patch | git am -3 --whitespace=fix` per the collaborator’s guide… and then push that patched branch into my PR's branch. This reduces the whitespace changes that show up in the PR, since the final land will eliminate those anyway.
99
+
88
100
-----
89
101
90
-
## Notes about these tools
102
+
## Postscript about the tools
91
103
92
-
The files in this directory were written for the node.js effort. It's
93
-
the intent of their author (Steven R. Loomis / srl295) to merge them
94
-
upstream into ICU, pending much discussion within the ICU-PMC.
104
+
The files in this directory were written for the node.js effort.
105
+
It was the intent of their author (Steven R. Loomis / srl295) to
106
+
merge them upstream into ICU, pending much discussion within the
107
+
ICU-TC.
95
108
96
109
`icu_small.json` is somewhat node-specific as it specifies a "small ICU"
97
110
configuration file for the `icutrim.py` script. `icutrim.py` and
98
111
`iculslocs.cpp` may themselves be superseded by components built into
99
-
ICU in the future.
100
-
101
-
The following tickets were opened during this work, and their
102
-
resolution may inform the reader as to the current state of icu-trim
103
-
upstream:
112
+
ICU in the future. As of this writing, however, the tools are separate
113
+
entities within Node, although theyare being scrutinized by interested
114
+
members of the ICU-TC. The “upstream” ICU bugs are given below.
0 commit comments