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:
parent
aa605c16f3
commit
bc96e6f1ff
1 changed files with 15 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue