Skip to content

Commit e233bef

Browse files
stefanbellergitster
authored andcommitted
unicode_width.h: rename to use dash in file name
This is more consistent with the project style. The majority of Git's source files use dashes in preference to underscores in their file names. Also adjust contrib/update-unicode as well. Signed-off-by: Stefan Beller <[email protected]>
1 parent fa2656f commit e233bef

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

contrib/update-unicode/README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
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.
33

44
The long version
55
================
66

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
88
tables of zero and double width Unicode code points, respectively.
99
These tables are generated using update_unicode.sh in this directory.
1010
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
1616

1717
On each run, update_unicode.sh checks whether more recent Unicode data
1818
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
2020
committed.

contrib/update-unicode/update_unicode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#Cf Format a format control character
77
#
88
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
1010

1111
wget -N http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt \
1212
http://www.unicode.org/Public/UCD/latest/ucd/EastAsianWidth.txt &&
File renamed without changes.

utf8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int git_wcwidth(ucs_char_t ch)
8181
/*
8282
* Sorted list of non-overlapping intervals of non-spacing characters,
8383
*/
84-
#include "unicode_width.h"
84+
#include "unicode-width.h"
8585

8686
/* test for 8-bit control characters */
8787
if (ch == 0)

0 commit comments

Comments
 (0)