diff -uNr xfig.3.2.3d.orig/f_save.c xfig.3.2.3d/f_save.c --- xfig.3.2.3d.orig/f_save.c Tue Jul 4 01:37:21 2000 +++ xfig.3.2.3d/f_save.c Mon Sep 17 15:59:28 2001 @@ -25,6 +25,12 @@ #include "w_setup.h" #include "w_zoom.h" +#include "f_util.h" + char *mycommand; + char *mycommandstring="xfig_at_save_batch"; +//----------------------------- + + static int write_tmpfile=0; init_write_tmpfile() @@ -59,7 +65,13 @@ return (-1); } if (!update_figs) - put_msg("%d object(s) saved in \"%s\"", num_object, file_name); +// put_msg("%d object(s) saved in \"%s\"", num_object, file_name); + mycommand = build_command(mycommandstring, file_name); + put_msg("%d object(s) saved in \"%s\" Launching \"xfig_at_save_batch %s\"",\ + num_object, file_name, file_name); + system(mycommand); + free(mycommand); +//------------------------------- /* update the recent list if caller desires */ if (update_recent) @@ -387,10 +399,10 @@ c = t->cstring[l]; if (c == '\\') fprintf(fp,"\\\\"); /* escape a '\' with another one */ - else if (c < 0x80) +// else if (c < 0x80) putc(c,fp); /* normal 7-bit ASCII */ - else - fprintf(fp, "\\%o", c); /* 8-bit, make \xxx (octal) */ +// else +// fprintf(fp, "\\%o", c); /* 8-bit, make \xxx (octal) */ } fprintf(fp,"\\001\n"); /* finish off with '\001' string */ }