From bc96e6f1ff6c72d4d2cafb6a4088ffa32cd3019f Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 14 Apr 2012 23:18:17 +0100 Subject: [PATCH] HACK, instant should not stop on non fatal fatals, this allows building of 'C' locale help files. --- cde/programs/dtdocbook/instant/main.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/cde/programs/dtdocbook/instant/main.c b/cde/programs/dtdocbook/instant/main.c index bd3fb782..3a257dff 100644 --- a/cde/programs/dtdocbook/instant/main.c +++ b/cde/programs/dtdocbook/instant/main.c @@ -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, -- 2.25.1