1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

HACK, instant should not stop on non fatal fatals, this allows building

of 'C' locale help files.
This commit is contained in:
Peter Howkins 2012-04-14 23:18:17 +01:00
parent aa605c16f3
commit bc96e6f1ff

View 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,