HACK, instant should not stop on non fatal fatals, this allows building
authorPeter Howkins <flibble@users.sourceforge.net>
Sat, 14 Apr 2012 22:18:17 +0000 (23:18 +0100)
committerPeter Howkins <flibble@users.sourceforge.net>
Sat, 14 Apr 2012 22:18:17 +0000 (23:18 +0100)
of 'C' locale help files.

cde/programs/dtdocbook/instant/main.c

index bd3fb7828b5aa11092184814286e57d0462866bc..3a257dffe55193850f03d2e57ae9aabc3fd7d4bf 100644 (file)
@@ -134,14 +134,26 @@ static char  locale[] = "C.ISO-8859-1";
 char        *newLocale;
 int          execVer;
 int          compVer;
+int          ret;
 
-if ((_DtLcxOpenAllDbs(&myDb) != 0) ||
-    (_DtXlateGetXlateEnv(myDb,myPlatform,&execVer,&compVer) != 0)) {
+if ((_DtLcxOpenAllDbs(&myDb) != 0)) {
     fprintf(stderr,
-            "Warning: could not open locale translation database.\n");
+            "Warning: could not open databases.\n");
     exit(1);
 }
 
+ret = _DtXlateGetXlateEnv(myDb,myPlatform,&execVer,&compVer);
+if (ret != 0) {
+    fprintf(stderr,
+            "Warning: could not open locale translation database. %d\n", ret);
+
+/* HACK For some reason on linux this function fails, but isn't completely fatal */
+#if !defined(linux)
+    exit(1);
+#endif
+
+}
+
 if (_DtLcxXlateStdToOp(myDb,
                        myPlatform,
                        execVer,