From 3621d2a329b68887ba11fb17393d5184b7be789a Mon Sep 17 00:00:00 2001 From: Stig Venaas Date: Thu, 18 Jan 2001 18:10:11 +0000 Subject: [PATCH] Also install comp.dat, and fixed a bug in create_comps() --- libraries/liblunicode/Makefile.in | 2 +- libraries/liblunicode/ucdata/ucgendat.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblunicode/Makefile.in b/libraries/liblunicode/Makefile.in index a5030f131d..f746964fd2 100644 --- a/libraries/liblunicode/Makefile.in +++ b/libraries/liblunicode/Makefile.in @@ -23,7 +23,7 @@ ucgendat: $(LIBRARY) ucgendat.o $(LTLINK) -o $@ ucgendat.o $(LIBS) ./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt -DATFILES = case.dat cmbcl.dat ctype.dat decomp.dat num.dat +DATFILES = case.dat cmbcl.dat comp.dat ctype.dat decomp.dat num.dat install-local: $(PROGRAMS) FORCE -$(MKDIR) $(DESTDIR)$(datadir)/ucdata diff --git a/libraries/liblunicode/ucdata/ucgendat.c b/libraries/liblunicode/ucdata/ucgendat.c index 507503f3b5..ff165f7308 100644 --- a/libraries/liblunicode/ucdata/ucgendat.c +++ b/libraries/liblunicode/ucdata/ucgendat.c @@ -1159,6 +1159,7 @@ create_comps(void) comps[cu].code2 = decomps[i].decomp[1]; cu++; } + comps_used = cu; qsort(comps, comps_used, sizeof(_comp_t), (int (*)(const void *, const void *)) cmpcomps); } -- 2.39.5