--- safeclib-3.5.orig/tests/test_towfc_s.c
+++ safeclib-3.5/tests/test_towfc_s.c
@@ -13,7 +13,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#define CFOLD "CaseFolding.txt"
+#define CFOLD "/usr/share/unicode/CaseFolding.txt"
 
 #if SIZEOF_WCHAR_T > 2
 #define MAX_LEN 4
@@ -65,15 +65,9 @@ int test_towfc_s(void) {
 
     f = fopen(CFOLD, "r");
     if (!f) {
-        printf("downloading %s ...", CFOLD);
-        fflush(stdout);
-        system("wget ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt")
-            ? printf(" done\n")
-            : printf(" failed\n");
-        f = fopen(CFOLD, "r");
-    }
-    if (!f)
+        printf("not downloading %s ...", CFOLD);
         return 1;
+    }
     while (!feof(f)) {
         int l;
         char *p = fgets(s, sizeof(s), f);
--- safeclib-3.5.orig/tests/test_towlower.c
+++ safeclib-3.5/tests/test_towlower.c
@@ -16,7 +16,7 @@
 EXTERN uint32_t _towcase(uint32_t wc, int lower);
 int test_towlower(void);
 
-#define CFOLD "CaseFolding.txt"
+#define CFOLD "/usr/share/unicode/CaseFolding.txt"
 
 int ignore_f = 1;
 
@@ -36,13 +36,8 @@ int test_towlower(void) {
 
     f = fopen(CFOLD, "r");
     if (!f) {
-        printf("downloading %s ...", CFOLD);
-        fflush(stdout);
-        system("wget ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt")
-            ? printf(" done\n")
-            : printf(" failed\n");
-        printf(" done\n");
-        f = fopen(CFOLD, "r");
+        printf("not downloading %s ...", CFOLD);
+        return 1;
     }
     while (!feof(f)) {
         int l;
--- safeclib-3.5.orig/tests/test_towupper.c
+++ safeclib-3.5/tests/test_towupper.c
@@ -25,8 +25,8 @@ int check_casefolding(uint32_t lwr, uint
 int check(uint32_t wc, const char *status, const char *name);
 int test_towupper(void);
 
-#define GENCAT "DerivedGeneralCategory.txt"
-#define CFOLD "CaseFolding.txt"
+#define GENCAT "/usr/share/unicode/extracted/DerivedGeneralCategory.txt"
+#define CFOLD "/usr/share/unicode/CaseFolding.txt"
 #ifndef PERL
 /* Must have the same Unicode version 9.0, at least 5.26.
    Better 5.27.3 with Unicode 10. */
@@ -148,26 +148,14 @@ int test_towupper(void) {
     pl = fopen(TESTPL, "w");
     f = fopen(GENCAT, "r");
     if (!f) {
-        printf("downloading %s ...", GENCAT);
-        fflush(stdout);
-        if (system("wget "
-                   "ftp://ftp.unicode.org/Public/UNIDATA/extracted/"
-                   "DerivedGeneralCategory.txt"))
-            printf(" done\n");
-        else
-            printf(" failed\n");
-        f = fopen(GENCAT, "r");
+        printf("not downloading %s ...", GENCAT);
+        return 1;
     }
 
     cf = fopen(CFOLD, "r");
     if (!cf) {
-        printf("downloading %s ...", CFOLD);
-        fflush(stdout);
-        if (system("wget ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt"))
-            printf(" done\n");
-        else
-            printf(" failed\n");
-        cf = fopen(CFOLD, "r");
+        printf("not downloading %s ...", CFOLD);
+        return 1;
     }
 
     while (!feof(f)) {
