From: Stig Venaas Date: Thu, 18 Jan 2001 18:10:11 +0000 (+0000) Subject: Also install comp.dat, and fixed a bug in create_comps() X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1565 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3621d2a329b68887ba11fb17393d5184b7be789a;p=openldap Also install comp.dat, and fixed a bug in create_comps() --- 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); }