Git fork

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 <sbeller@google.com>

authored by

Stefan Beller and committed by
Junio C Hamano
e233bef4 fa2656f1

+5 -5
+3 -3
contrib/update-unicode/README
··· 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 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.
+1 -1
contrib/update-unicode/update_unicode.sh
··· 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 &&
unicode_width.h unicode-width.h
+1 -1
utf8.c
··· 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)