Looking at the code in src/ui/gui/output-viewer.c it seems to me that the patch to make the location of psppire.txt configurable was only half finished.
Could the Windoze users apply this patch to the stable branch and report on it? Thanks. -- PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://pgp.mit.edu or any PGP keyserver for public key.
diff --git a/src/ui/gui/output-viewer.c b/src/ui/gui/output-viewer.c
index 2b0c4af..641944d 100644
--- a/src/ui/gui/output-viewer.c
+++ b/src/ui/gui/output-viewer.c
@@ -194,7 +194,7 @@ reload_the_viewer (void)
reload_viewer (the_output_viewer);
}
-#define OUTPUT_FILE_NAME "psppire.txt"
+
void
reload_viewer (struct output_viewer *ov)
@@ -224,10 +224,10 @@ reload_viewer (struct output_viewer *ov)
*/
{
GtkTextIter start_iter;
- FILE *fp = fopen (OUTPUT_FILE_NAME, "r");
+ FILE *fp = fopen (output_file_name (), "r");
if ( !fp)
{
- g_print ("Cannot open %s\n", OUTPUT_FILE_NAME);
+ g_warning ("Cannot open %s\n", output_file_name ());
return;
}
@@ -253,7 +253,7 @@ reload_viewer (struct output_viewer *ov)
ov->fp = fopen (output_file_name (), "r");
if ( ov->fp == NULL)
{
- g_print ("Cannot open %s\n", output_file_name ());
+ g_warning ("Cannot open %s\n", output_file_name ());
return;
}
}
@@ -278,7 +278,7 @@ reload_viewer (struct output_viewer *ov)
}
-
+#define OUTPUT_FILE_NAME "psppire.txt"
const char *
output_file_name (void)
signature.asc
Description: Digital signature
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
