Skip to content

Commit 29524d0

Browse files
committed
Add utf8proc for handling character properties
Based on JuliaStrings/utf8proc@d81308f. Closes #722
1 parent cd106d3 commit 29524d0

File tree

12 files changed

+16101
-796
lines changed

12 files changed

+16101
-796
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ COMPAT_CPPFLAGS += -DNO_WORDEXP
269269
COMPAT_OBJS += compat/wordexp.o
270270
endif
271271

272-
COMPAT_OBJS += compat/hashtab.o compat/wcwidth.o
272+
COMPAT_OBJS += compat/hashtab.o compat/utf8proc.o
273273

274274
override CPPFLAGS += $(COMPAT_CPPFLAGS)
275275

@@ -320,7 +320,7 @@ src/tig: $(TIG_OBJS)
320320
TEST_GRAPH_OBJS = test/tools/test-graph.o src/string.o src/util.o src/io.o $(GRAPH_OBJS) $(COMPAT_OBJS)
321321
test/tools/test-graph: $(TEST_GRAPH_OBJS)
322322

323-
DOC_GEN_OBJS = tools/doc-gen.o src/string.o src/types.o src/util.o src/request.o compat/wcwidth.o
323+
DOC_GEN_OBJS = tools/doc-gen.o src/string.o src/types.o src/util.o src/request.o $(COMPAT_OBJS)
324324
tools/doc-gen: $(DOC_GEN_OBJS)
325325

326326
OBJS = $(sort $(TIG_OBJS) $(TEST_GRAPH_OBJS) $(DOC_GEN_OBJS))

NEWS.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Improvements:
1414
- Support running Tig via a Git alias. (GH #763)
1515
- Use ISO-8601 letters for short relative dates. (GH #759)
1616
- Change date formatting to show timezones by default. (GH #428, #811)
17+
- Use utf8proc to handle Unicode characters. (GH #827)
1718

1819
Bug fixes:
1920

0 commit comments

Comments
 (0)