We're updating the issue view to help you get more done. 

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.

Status

Assignee

TracBot

Reporter

TracBot

Labels

Reviewer

None

Time Needed

None

Start date

None

Components

Priority

assess