UnicodeData-3.0.0.txt is missing in the share directory

Description

intltest crashes since the UnicodeData-3.0.0.txt is not installed in the
/usr/local/share/icu/1.3/ directory.

Here's a patch to install this file also:
(in the icu/source directory)

diff -c Makefile.in.old Makefile.in

  •  

    •  

      • Makefile.in.old Sat Oct 9 12:57:50 1999

      • Makefile.in Sat Oct 9 12:58:12 1999
        ***************

      • 52,58 ****
        SUBDIRS = common i18n $(EXTRA) tools $(TEST) $(SAMPLE)

  1.  

    1. Extra files to install
      ! EXTRA_DATA = convrtrs.txt UnicodeData-3.0.0d5.txt

  1.  

    1. List of phony targets
      .PHONY : all all-local all-recursive install install-local \

      • 52,58 ----
        SUBDIRS = common i18n $(EXTRA) tools $(TEST) $(SAMPLE)

  1.  

    1. Extra files to install
      ! EXTRA_DATA = convrtrs.txt UnicodeData-3.0.0d5.txt UnicodeData-3.0.0.txt

  1.  

    1. List of phony targets
      .PHONY : all all-local all-recursive install install-local \

Additionaly, I have added a check in the intltest to exit gracefully if this
file is missing:
(in the icu/source/test/intltest directory)
diff -c ucdtest.cpp.old ucdtest.cpp

  •  

    •  

      • ucdtest.cpp.old Sat Oct 9 12:45:18 1999

      • ucdtest.cpp Sat Oct 9 12:50:27 1999
        ***************

      • 302,312 ****
        char buffer[1000];
        char* bufferPtr, *dirPtr;
        char path[256];


strcpy(path , icu_getDefaultDataDirectory());
! strcat(path, "UnicodeData-3.0.0.txt");

input = fopen( path, "r");
#ifdef WIN32
assert(input != 0);
#endif
— 302,318 ---- char buffer[1000];
char* bufferPtr, *dirPtr;
char path[256];
+ const char* datafile = "UnicodeData-3.0.0.txt";

strcpy(path , icu_getDefaultDataDirectory());
! strcat(path, datafile);

input = fopen( path, "r");
+ if (input == 0)
+ {
+ errln("Failed to open: " + UnicodeString(datafile));
+ return;
+ }
#ifdef WIN32
assert(input != 0);
#endif

Linux lgh3810234 2.2.12 #14 tor aug 26 19:25:24 CEST 1999 i686 unknown
ii libc6 2.1.2-5 GNU C Library: Shared libraries and timezone
ii gcc 2.95.2-0pre2 The GNU C compiler.

Activity

Show:

UnicodeBot 
June 30, 2018 at 10:35 PM

Trac Comment by auditor—1970-01-01T00:00:38.000Z
  • Mon Oct 11 10:27:12 1999 srl moved from incoming to config_build

  • Mon Oct 11 10:44:13 1999 srl moved from config_build to fixed

  • Thu Oct 28 19:02:45 1999 hshih moved from fixed to closed

Fixed

Details

Assignee

Reporter

Priority

Created June 28, 2018 at 8:35 AM
Updated October 23, 2019 at 10:04 PM
Resolved July 2, 2018 at 1:56 AM