Commit Graph

55 Commits

Author SHA1 Message Date
Patrick Georgi
7ab683d29a handle missing return values 2025-12-18 22:58:26 +01:00
Patrick Georgi
ae001c320f fix misleading indentation
Mostly to shut up the compiler, but some real bugs hidden in there.
2025-12-18 22:58:26 +01:00
Liang Chang
f63a747814 dtdocbook: set locale explicitly. 2022-08-13 13:55:48 -06:00
Chase
edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Liang Chang
2213dfb045 dtdocbook: update macros. 2022-02-07 09:48:23 +08:00
Liang Chang
b4ffb694bd Merge branch 'master' into dtdocbook 2022-01-30 08:04:32 +08:00
Liang Chang
2c3e1c8e31 dtdocbook: remove unnecessary header files dependency. 2022-01-26 19:50:12 +08:00
Liang Chang
4f791b9dd4 dbtoman: remove duplicate source code and merge into dtdocbook. 2022-01-26 19:49:03 +08:00
Peter Howkins
1227dabec4 dtdocbook: Resolve uninitialized warnings 2021-12-24 10:50:28 -07:00
Liang Chang
1e9b4660ad doc2sdl: use POSIX regex functions. 2021-12-21 01:53:53 +08:00
Liang Chang
16e67fec81 Merge branch 'master' into dtdocbook 2021-12-12 20:01:35 +08:00
Liang Chang
a0ac8c06bf dtdocbook: remove hardcoded /usr/dt. 2021-12-12 09:38:16 +08:00
Jon Trulson
dda11f0e38 Fix a bunch of -Wempty-body warnings reported by clang
Many of these were real bugs, like:

if (cond);
   do_something

etc...

Others were just cosmetic - like placing the ';' on a separate line to
make the intention clear.
2021-12-11 13:10:24 -07:00
Liang Chang
df7bc69a3f dtdocbook: Migrate instant to UTF-8. 2021-12-06 06:34:38 +08:00
Jon Trulson
51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06:00
Jon Trulson
ece5c0ea14 Merge branch 'master' into autotools-conversion
Lost the ksh93 submodule so will re-add in a later commit.
2021-01-30 19:04:10 -07:00
Lev Kujawski
668b9c19a3 dtdocbook/instant: the musl C library does not define MAXNAMLEN
Use the POSIX alternative NAME_MAX instead.
2021-01-30 17:21:16 -07:00
Liang Chang
12f2fb1f10 dtdocbook: fix a segmentation fault. 2021-01-01 03:07:37 +08:00
Jon Trulson
cc12058502 dtdocbook: make it build under autotools
Remove a pile of old SGML stuff we no longer need in dtdocbook since
we use NSGMLS.

Use some TCL macros from m4/tcl.m4 to loacate and use information in
the tclConfig.sh script installed with TCL.  I had to modify it to
export TCL_INCLUDE_SPEC, which was present but not imported.
2020-09-07 17:43:01 -06:00
Jon Trulson
e481f4cb93 Merge branch 'master' into autotools-conversion 2019-12-01 13:31:21 -07:00
Marcin Cieślak
5cebd7c4da dtdocbook/instant: fix buffer overlow on German umlaut in latin-1
One-off error:

Old buffer length was 6 for one character (3 * 1 + 3)
We need one more byte par character in the buffer for
the hex representation of it.

+0 '"'
+1 '\\'
+2 'x'
+3 'f'
+4 'c'
+5 '"'
+6 0x0 << overflow

tcl combined with RCHECK will abort because memory blocks
are allocated contiguously and we overwrite the magic marker
of the next block.
2019-11-30 10:13:43 -07:00
Jon Trulson
730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Chase
2d136b7062 programs/dtdocbook: add automake files 2019-10-23 15:34:20 -06:00
Jose Rubio
507665352f Link TCL libraries and restrict tcl8.6 to SuSE only. 2019-09-16 14:58:21 +02:00
Jon Trulson
c575ca9315 dtdockbook/instant: Add the proper paths for TCL on NetBSD
Patch submitted by Danilo Pecher <danilo.pecher@data-experts.biz>
2019-02-24 12:54:42 -07:00
Matthew R. Trower
012862e8ee Add default TCLLIB, and allow override in host.def
Restores build on Sun, and maybe others.
2018-10-25 11:43:43 -06:00
Jon Trulson
2fb1f12654 dtdocbook/instant: add Tcl_GetErrorLine check for older versions of Tcl 2018-10-07 13:28:04 -06:00
Jon Trulson
77a027039c docbook.tcl, instant: finish remaining help generation issues with tcl
In this commit, we convert FreeBSD and OpenBSD to use a system version
of TCL (8.6).

We also get rid of the hairy and buggy "CompareI18NStrings" custom Tcl
function and use the newer Tcl's builtin dictionary sort mechanism for
generating the Indexes and Glossaries, which were silently broken in
previous commits.

It was just not possible to use the same Tcl code in modern versions
of Tcl in addition to the ancient version included with CDE - so, now
we will always depend on the system version.  It's been tested with
8.6 and 8.7 versions of Tcl with great results.
2018-09-22 12:27:27 -06:00
Jon Trulson
e82991579f use system tcl: clean up Imake files for dtdocbook/instant 2018-09-19 17:49:15 -06:00
Jon Trulson
23c4c0667d instant: encode 8bit chars to keep Tcl happy 2018-09-19 17:40:25 -06:00
Jon Trulson
7712950fb7 docbook/instant: fix a few more issues 2018-09-19 17:40:25 -06:00
Jon Trulson
68559d4f76 tcl: use the system version, initial work only on linux for now 2018-09-19 17:40:25 -06:00
Peter Howkins
82e8b80612 dtdocbook: Coverity 86996 2018-07-04 02:01:15 +01:00
Peter Howkins
751505e6ab dtdocbook: Coverity 86763 2018-07-04 01:59:42 +01:00
Peter Howkins
948baafd17 dtdocbook: Change to ANSI function definitions 2018-06-28 04:12:10 +01:00
chase
809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -06:00
chase
07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase
8a4f389634 Remove UXPDS support 2018-05-15 20:27:22 -06:00
chase
1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -06:00
chase
07722f5c13 More spelling fixes 2018-04-22 12:15:08 -06:00
Peter Howkins
93f3878b4e dtdocbook: resolve 49 compiler warnings. 2015-01-06 17:22:50 +00:00
Jon Trulson
362a921245 dtdocbook/instant: *always* link with local libtcl.a
On some systems with libtcl installed, it might be linked into instant
rather than the locally provided version.  This can result in random
coredumps.

Seen on Ubuntu 12.04, x86_64.

Now, we force linking with ../tcl/libtcl.a.
2014-03-10 17:06:24 -06:00
Pascal Stumpf
1b319ff67d include unistd.h for read(2) prototype. Fixes dtdocbook on PowerPC.
There are a lot more warnings here, but this one was an actual bug.  Full
treatment pending ...
2013-07-23 19:01:13 -06:00
Pascal Stumpf
b49a4ffc94 Keep track of the length of the string in ExpandVariables().
On OpenBSD, the 'S' option to malloc(3) enables guard pages (among other
things).  This loop could have triggered this trap when reading beyond the
buffer.  Also, the whole "while(*ip)" construct was based on the assumption that
the memory after the string is always zero-filled.
2012-11-24 19:25:19 -07:00
Pascal Stumpf
3e4517dc2a OpenBSD patches for dtcalc, dtdocbook, dthelp and dtimsstart. 2012-08-11 19:43:41 -06:00
Jon Trulson
7604468ca1 instant: change warning message to fatal message, since it is. 2012-07-13 22:26:02 -06:00
Jon Trulson
a933d4b600 instant: partially revert commit bc96e6f1ff. remove 'HACK' :)
instant should fail if the locale xlation db cannot be opened.

The reason this was failing was because the locale translation DB for
linux did not exist (Linux.lcx).  I didn't add it until weeks/months
later :)

There needs to be one for each platform called "$(uname -s).lcx".
FreeBSD will need one too.
2012-07-13 22:15:58 -06:00
Jon Trulson
1b74fb9ba7 instant: fix infinite loop seen in non-C locales 2012-06-19 20:02:56 -06:00
Jon Trulson
cdf8003f7c Remove hardcoded CCLINK's in Imakefiles when linking with C++ built libs (DtSvc).
Added proper SharedDtSvcReqs in lnxLib.tmpl and CplusplusLibC in
linux.cf.  This allows the libstdc++ dependancy to be properly
declared for libDtSvc so that it is not neccessary to hardcode 'CCLINK
= g++' in the Imakefiles of programs linking angainst libDtSvc.
2012-06-19 16:27:20 -06:00
Jon Trulson
fff18bf2b7 doc/help localization changes
- by default, do not build any other locale than C for now
- do not try to build the guides.  These require functioning
  dtinfo/docbook
- add a Linux.lcx locale translation db.  Not used yet.
- fix some overflows in dtdocbook/instant
2012-06-18 22:01:02 -06:00