From: Jim Evins Date: Sun, 25 Aug 2002 02:29:28 +0000 (+0000) Subject: Now unlinks output file to prevent an attempt to pop-up a dialog asking to remove... X-Git-Tag: glabels-2_3_0~825 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6320b644115c2c0b78cc68794b482aec3db5a8ac;p=glabels Now unlinks output file to prevent an attempt to pop-up a dialog asking to remove it -- since we don't do a gnome_init, this would segfault. Added a setlocale at initialization. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@57 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels1/src/glabels_batch.c b/glabels1/src/glabels_batch.c index 1659f89f..480f2071 100644 --- a/glabels1/src/glabels_batch.c +++ b/glabels1/src/glabels_batch.c @@ -22,6 +22,8 @@ #include +#include +#include #include #include @@ -82,6 +84,7 @@ main (int argc, bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); textdomain (PACKAGE); + setlocale (LC_ALL, ""); gtk_type_init (); /* argument parsing */ @@ -138,6 +141,7 @@ main (int argc, } } if ( master != NULL ) { + unlink (output); gnome_print_master_print (master); }