File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
TL;DR: Run update_unicode.sh after the publication of a new Unicode
2
- standard and commit the resulting unicode_widths .h file.
2
+ standard and commit the resulting unicode-widths .h file.
3
3
4
4
The long version
5
5
================
6
6
7
- The Git source code ships the file unicode_widths .h which contains
7
+ The Git source code ships the file unicode-widths .h which contains
8
8
tables of zero and double width Unicode code points, respectively.
9
9
These tables are generated using update_unicode.sh in this directory.
10
10
update_unicode.sh itself uses a third-party tool, uniset, to query two
@@ -16,5 +16,5 @@ This requires a current-ish version of autoconf (2.69 works per December
16
16
17
17
On each run, update_unicode.sh checks whether more recent Unicode data
18
18
files are available from the Unicode consortium, and rebuilds the header
19
- unicode_widths .h with the new data. The new header can then be
19
+ unicode-widths .h with the new data. The new header can then be
20
20
committed.
Original file line number Diff line number Diff line change 6
6
# Cf Format a format control character
7
7
#
8
8
cd " $( dirname " $0 " ) "
9
- UNICODEWIDTH_H=$( git rev-parse --show-toplevel) /unicode_width .h
9
+ UNICODEWIDTH_H=$( git rev-parse --show-toplevel) /unicode-width .h
10
10
11
11
wget -N http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt \
12
12
http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt &&
File renamed without changes.
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ static int git_wcwidth(ucs_char_t ch)
81
81
/*
82
82
* Sorted list of non-overlapping intervals of non-spacing characters,
83
83
*/
84
- #include "unicode_width .h"
84
+ #include "unicode-width .h"
85
85
86
86
/* test for 8-bit control characters */
87
87
if (ch == 0 )
You can’t perform that action at this time.
0 commit comments