2022-02-13 Paul Vojta * dvi-init.c (make_backup_fp): call new try_dup, and existing try_fdopen, before fseek. * util.c (try_dup): define new fn. * util.h (try_dup): declare it. This resolves xdvi crashing under MacOS after hitting `R' in some situations (the preceding change did as well, in a clunkier way). https://tug.org/pipermail/tlbuild/2022q1/005140.html ff. 2022-02-01 John Hawkinson * dvi-init.c (make_backup_fp): check returns from fseeks, disable useTempFp if failure. Posted at https://tug.org/pipermail/tlbuild/2022q1/005129.html 2022-01-31 Karl Berry * dvi-init.c (file_exists_p): check for failed fstat. Found by John Hawkinson, tlbuild 30 Jan 2022 22:42:23. https://tug.org/pipermail/tlbuild/2022q1/005105.html * xdvi.1.in: add 262144=find and 524288=files. Found by John Hawkinson, tlbuild 30 Jan 2022 23:11:10. 2022-01-26 Karl Berry * gui/print-log.h (info): don't declare unintended `info' variable with type. From Evan Miller, tex-k 26 Jan 2022 10:55:35. 2021-03-14 Karl Berry * string-utils.c (shell_escape_string): escape other shell metacharacters and whitespace. 2021-03-12 Norbert Preining * string-utils.c (shell_escape_string): also escape &. 2021-03-14 Norbert Preining * string-utils.c (shell_escape_string): also escape &. 2020-03-02 Karl Berry * main.c (is_good_dvi_file): avoid using strnlen, not present on Solaris. https://tug.org/pipermail/tlbuild/2020q1/004659.html 2020-03-01 Karl Berry * Import xdvi-22.87.04 from https://sourceforge.net/projects/xdvi/files/xdvik, includes changes made here. 2019-07-22 Karl Berry * psgs.c (initGS): don't use now-gone-from-ghostscript execute operator; from Paul Vojta. 2019-05-31 Karl Berry * ac/xdvik.ac (xdvi-x-toolkit): the default is always xaw, and has been for a long time. Nelson mail to tlbuild, 31 May 2019 11:39:52. 2019-03-25 Karl Berry * xdvi.1.in: omit unused second font letter for option names. From Debian. 2018-01-17 Karl Berry * xdvi.1.in: remove trailing whitespace to placate Debian. Use \& instead of "," after end-of-line "e.g." for consistency. Remove spurious doubled words. 2018-01-17 Norbert Preining * add .desktop file * Makefile.am: add desktop file installation 2017-08-07 Hironobu Yamashita * Makefile.am: config.xdvi is installed under texmf-dist/dvips/xdvi, not texmf-dist/dvips/config. 2016-04-06 Karl Berry * Import xdvik-22.87.03. 2015-04-17 Karl Berry * psheader.txt (/psfts, /startTexFig, /doclip, /endTexFig): remove these defns from (obsolete and nonfree) psfig. Report from Werner Fink, 14 Apr 2015 17:16:23. 2014-12-10 Peter Breitenlohner * xdvi.c (set_windowsize): Use "%u" to print unsigned int. * hypertex.h: Correct typo in spelling of header guard. 2014-06-23 Peter Breitenlohner * encodings.c: Do not compile close_iconv() when not used. * translations.h: Do not #include "c-auto.h". * xdvi.h: Do not #include "c-auto.h" and "kpathsea/c-auto.h". * m4/xdvi-xinput-2-1.m4: Test link instead of compile step. 2014-06-19 Peter Breitenlohner * ft.c, gui/xaw_menu.c, hypertex.c: Avoid undefined behaviour when char is signed. 2014-06-16 Peter Breitenlohner * squeeze/Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS. 2014-05-06 Peter Breitenlohner * m4/xdvi-xinput-2-1.m4: Change the default to disable 'smooth scrolling' for native TL build. 2014-04-14 Peter Breitenlohner Imported xdvik-22.87.tar.gz from http://sourceforge.net/projects/xdvi/files/xdvik/. 2013-09-02 Peter Breitenlohner * Makefile.am: Drop ACLOCAL_AMFLAGS. * configure.ac: Use AC_CONFIG_MACRO_DIRS. 2013-07-02 Peter Breitenlohner * *.[ch], gui/*.[ch], tests/*.[ch]: Include "xdvi-config.h" first in all compilable source files but not in headers, as claimed in a comment at the top of xdvi-config.h. 2013-07-01 Peter Breitenlohner * font-open.c, psdps.c, xdvi.h: Replace bcopy(f, t, l) => memcpy(t, f, l). * psgs.c: Replace rindex() => strrchr(). 2013-06-28 Peter Breitenlohner * xlwradioP.h: May need to #include . 2013-06-27 Peter Breitenlohner Drop variables that are set but not used: * dvi-draw.c: 'actual_w'. * events.c: 'arg_bak' and 'clear_statusline'. * gui/print-dialog.c: 'dest_label' and 'range_label'. * gui/search-dialog.c: 'timeout'. * hypertex.c: 'x_delta'. * special.c: 'found' (two times). * xdvi.c: 'exclusive'. 2013-06-20 Peter Breitenlohner * m4/xdvi-check-iconv.m4: Somewhat improved logic. 2013-04-07 Peter Breitenlohner Imported xdvik-22.86.tar.gz from http://sourceforge.net/projects/xdvi/files/xdvik/. * Makefile.am: Renamed ChangeLog.TL => ChangeLog. (install-data-hook): Make sure $(DESTDIR)$(dvipsconfdir) exists. * util.c (find_str_int_hash): Return type of hash_lookup() is 'const_string *'. * ft.c (read_ft_char): Count bmTypeT words instead of bytes and avoid cast causing 'strict-aliasing rules' warning. 2013-02-08 Peter Breitenlohner * Makefile.am (xdvidir, pixmapdir): Change texmf => texmf-dist. 2012-12-16 Peter Breitenlohner * util.c: Adapt to modified hash_lookup() return type. * Makefile.am, squeeze/Makefile.am: Enable silent rules. 2012-11-20 Peter Breitenlohner * Makefile.am, tests/Makefile.am: Avoid use of deprecated INCLUDES. 2012-04-18 Peter Breitenlohner * configure.ac: Remove some obsolete comments. * m4/xdvi-check-iconv.m4, m4/xdvi-check-langinfo.m4, m4/xdvi-func-working-vsnprintf.m4: Update copyright statements with info provided by Paul Vojta . 2012-04-17 Peter Breitenlohner * xdvi.c (run_dvi_file): Avoid unaligned access on some 64-bit systems. Mail from Nelson H. F. Beebe [tlbuild] Mon, 16 Apr 2012 18:48:34. 2012-04-02 Peter Breitenlohner Imported xdvik-22.85.tar.gz from http://sourceforge.net/projects/xdvi/files/xdvik/. * mksedscript: Correctly handle strings with embedded blanks, e.g., '#define PACKAGE_STRING "xdvik 22.85"' and similar. 2012-03-17 Peter Breitenlohner * mime.c, xdvi.1.in: Use /usr/local/etc/{mimetypes=>mime.types}. 2012-03-15 Peter Breitenlohner * xdvi.1.in: Remove an unmatched #endif and formatting bugs. * Makefile.am: Fixed a typo (in comment). 2012-02-21 Peter Breitenlohner * configure.ac: Drop XDVI_CC_CONCAT and XDVI_SYS_SUNOS_4, the results are not used. * m4/xdvi-cc-concat.m4, m4/xdvi-sys-sunos4.m4: Removed. 2011-12-06 Peter Breitenlohner * Makefile.am: Replace ${prefix}/texmf => $(datarootdir)/texmf. 2011-07-30 Peter Breitenlohner * font-open.[ch] (font_open): Constify `char **' parameter. * dvi-init.c (load_font): Cast font_open() argument to `const char **'. 2011-06-16 Peter Breitenlohner * read-mapfile.c (read_map_file): Allow find_suffix() to return a const string. 2011-03-07 Peter Breitenlohner * hypertex.c (launch_xdvi): `program_invocation_name' has been renamed into `kpse_invocation_name'. 2010-05-25 Karl Berry * m4/xdvi-check-iconv.m4 (--with-iconv): new option to completely disable checking for iconv. Needed due to the local configuration of the machine used to build the sparc-linux binaries (namely, weyl.math.utah.edu). 2010-05-19 Peter Breitenlohner * tests/run_tests.c, test_dl_list.c: Cast size_t to long for printing to avoid warnings on 64Bit systems. 2010-03-29 Peter Breitenlohner * configure.ac: Remove AC_TYPE_SIZE_T, now part of KPSE_COMMON. 2009-12-22 Peter Breitenlohner * tests/test_string_utils.c (test_my_stristr): Make the test more stringent (and closer to the original code). 2009-12-21 Peter Breitenlohner * tests/test_string_utils.c (test_my_stristr): Make test result independent of compiler optimizations (constant folding). 2009-12-18 Peter Breitenlohner * tests/test_string_utils.c (test_expand_filename): Do not prepend cwd to absolute filenames. 2009-11-17 Peter Breitenlohner * configure.ac: Suppress some compiler warnings (too many). 2009-11-07 Peter Breitenlohner * configure.ac, xdvi.h: Require recent kpathsea version. 2009-08-27 Peter Breitenlohner Avoid some maximal compiler warnings. * encodings.c (cjk2unicode): Unconstify string arg. * events.c (show_timers): Constify string arg. * gui/sfPath.c (SFLogin): Constify string members. (SFstrdup): Convert arg1 to result that can be assigned to const strings, constify remaining arg. (SFunreadableDir): Constify local var. * gui/sfPath.[ch] (SFchdir): Constify string arg. * hypertex.c (remote_URL_schemes): 'char *const'=>'const char*'. * main.c (compare_strings): 'const char**'=>'const char*const*'. * mime.c (mailcap_map): Constify string members. * pixmaps/toolbar.xpm, pixmaps/toolbar2.xpm: Constify pixmaps. 2009-08-26 Peter Breitenlohner Avoid some maximal compiler warnings. * dvi-init.c (get_tmp_dvi_name), gui/Tip.c (foo), gui/sfDir.c (foo), gui/sfDraw.c (foo), gui/sfPath.c (foo), gui/sfSelFile.c (foo), gui/xaw_menu.c (foo), gui/xlwradio.c (foo), gui/xm_colorsel.c (foo), gui/xm_filesel.c (foo), gui/xm_menu.c (foo), gui/xm_prefs.c (foo), gui/xm_prefs_appearance.c (foo), gui/xm_prefs_fonts.c (foo), gui/xm_prefs_helpers.c (foo), gui/xm_prefs_page.c (foo), gui/xm_prefs_scroll.c (foo), gui/xm_toolbar.c (foo), image-magick.c (clear_cache, foo), pagehist.c (page_history_clear), psdps.c (DPSErrorProcHandler, foo), psgs.c (gs_resume_prescan, foo), psnews.c (initNeWS, foo), util.c (do_abort): ANSI C function definitions, i.e., '()'=>'(void)'. * xserver-info.c (print_display_info, print_visual_info, print_screen_info, foo): ANSI C function definitions. 2009-08-22 Peter Breitenlohner * configure.ac: Check for and ... * xdvi.h: ... skip extern decl if found. 2009-06-29 Karl Berry * gui/help-window.c (default_help_general): avoid embedding date in binary. 2009-06-22 Peter Breitenlohner * dvi-draw.c: do not #include "kpathsea/c-vararg.h" (after #include ). * string-utils.h, xdvi.h, gui/message-window.c, gui/statusline.c, tests/test_string_utils.c: #include , not "kpathsea/c-vararg.h". * xdvi.h: remove NeedFunctionPrototypes et al. 2009-06-03 Peter Breitenlohner * events.c: avoid declaration after statement. from Vladimir Volovich . 2009-05-21 Peter Breitenlohner * CHANGES: fixed version/relase-date such that mksedscript can extract them. 2009-04-28 Peter Breitenlohner * xdvi.h: guard typedef of iconv_char_pptrT by '#if HAVE_ICONV_H'. * squeeze/squeeze.c: add '#include '. 2009-04-18 Peter Breitenlohner * xdvi.1.in (warnspecials): fixed duplicate entry, removing an #ifkpathsea without matching #endif. 2009-03-31 Peter Breitenlohner Imported ftp://tug.org/tex/xdvik-22.84.15.tar.gz and adapted to new TeX Live build system (Automake & Co.). Renamed original files XXX -> XXX-22.84.15. * squeeze.c (removed): File moved ... * squeeze/squeeze.c (new): ... to here. Don't include any system dependent kpathsea headers, such that squeeze/ can be configured separately for the build system. 2009-03-21 Peter Breitenlohner * CHANGES: fixed version/relase-date such that mksedscript can extract them. 2008-07-01 Peter Breitenlohner Imported ftp://tug.org/tex/xdvik-22.84.14.tar.gz and adapted to new TeX Live build system (autoconf-2.59+). * Makefile.in.orig, acconfig.h.orig, aclocal.m4.orig, configure.in.orig, depend.mk.orig, gui/Makefile.in.orig, gui/depend.mk.orig, kpathsea.ac.orig, tests/Makefile.in.orig, tests/depend.mk.orig, withenable.ac.orig (all new): Original files from xdvik-22.84.14. * Makefile.in, gui/Makefile.in, tests/Makefile.in: Added '@configure_input@' line and replace ac_include by kpse_include. * acinclude.m4 (new): Renamed from aclocal.m4. Renamed cache variables (must contain '_cv_'). * acinclude.m4, configure.in, withenable.ac: Added lots of m4 quoting and third args of AC_DEFINE. * acconfig.h (removed): Use AC_DEFINE with three args to provide templates. * configure.in: Replaced AC_OUTPUT with arguments by KPSE_CONFIG_FILES, AC_CONFIG_FILES and AC_OUTPUT without arg. * kpathsea.ac (LIBKPATHSEACPPFLAGS): Set to '-I$(kpathsea_parent)' instead of '-I$(kpathsea_dir)' to avoid confusion between and . * depend.mk, gui/depend.mk, tests/depend.mk: Regenerated and cleaned by hand ('make depend' didn't quite do that). * aclocal.m4, c-auto.in, configure: Regenerated. 2008-02-29 Peter Breitenlohner * acinclude.m4: added quotes to DEFUN's first args, added AC_DEFINES's third arg to provide autoheader templates ... * configure.in, withenable.ac: added AC_DEFINES's third arg to provide autoheader templates ... * acconfig.h: ... removed. 2008-01-31 Peter Breitenlohner Convert from autoconf-2.13 to autoconf-2.59+: * configure.in (AC_PREREQ): Require autoconf-2.59. * Makefile.in, gui/Makefile.in: Add @configure_input@ lines. * acinclude.m4 (new): Renamed from aclocal.m4. * aclocal.m4 (new): Generated (aclocal -I ../m4). * ../../libs/t1lib/t1lib.ac: Fixed a typo. * configure: Regenerated (autoconf).