From 6320b644115c2c0b78cc68794b482aec3db5a8ac Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sun, 25 Aug 2002 02:29:28 +0000 Subject: [PATCH] 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 --- glabels1/src/glabels_batch.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.39.5