[tex-k] Bug in mingw build of kpathsea

Karl Berry karl at freefriends.org
Sun Feb 7 00:51:27 CET 2010

Hi Hib,

    I was trying to make Gnome's document viewer Evince display .dvi files
    when running on Windows, when I found an issue with kpathsea.

Thanks for the report.  I applied the following patch, from Taco, to
help clean up the #if situation.  Let us know if troubles persist.

--- source/texk/kpathsea/mingw32.c	(revision 3417)
+++ source/texk/kpathsea/mingw32.c	(working copy)
@@ -400,25 +400,18 @@
-#if 0
-look_for_cmd(const char *cmd, char **app, char **new)
 look_for_cmd(const char *cmd, char **app)
   char *env_path;
   char *p, *q;
   char pname[MAXPATHLEN], *fp;
   char *suffixes[] = { ".bat", ".cmd", ".com", ".exe", NULL };
   char **s;
-#if 1
-  char **new;
   char *app_name, *new_cmd;
   BOOL go_on;
-  *new = *app = NULL;
+  *app = NULL;
   new_cmd = app_name = NULL;
   /* We should look for the application name along the PATH,
@@ -493,7 +486,6 @@
   if (env_path) free(env_path);
-  *new = new_cmd;
   *app = app_name;
   return TRUE;

More information about the tex-k mailing list