]> git.sur5r.net Git - glabels/commitdiff
Now unlinks output file to prevent an attempt to pop-up a dialog asking to remove...
authorJim Evins <evins@snaught.com>
Sun, 25 Aug 2002 02:29:28 +0000 (02:29 +0000)
committerJim Evins <evins@snaught.com>
Sun, 25 Aug 2002 02:29:28 +0000 (02:29 +0000)
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

index 1659f89fe69a2d229806f8eb30017fab4d1c429a..480f2071513d34ba9443e03593834bbac05922f7 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <config.h>
 
+#include <unistd.h>
+#include <stdlib.h>
 #include <gnome.h>
 #include <libgnomeprint/gnome-printer.h>
 
@@ -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);
        }