Reimond> BTW: When using browser to select output filename it shows
Reimond> a funny filename:
Reimond> 4ìÿ¿£L@ð?ð?ð?@´)@
Reimond> This is a bug.
>> Strange. I certainly haven't seen anything like this. Can you
>> tell me the exact steps that lead to this funny filename? Also,
>> I wonder what the contents of the following file is:
Reimond> First, i have no scanning device. Just check out the
Reimond> software.
Reimond> start xscanimage & click Browse a window with that funny
Reimond> name pops up
Ah, I see what's going on. The patch below fixes the problem (you'll
either have to delete ~/.sane/xscan/xscan.rc or select a reasonable
filename in the "Output Filename" entry box to make the problem
disappear after applying the patch).
Thanks for the report!
--david
--- xscanimage.c~ Mon Apr 21 19:40:07 1997
+++ xscanimage.c Tue Apr 22 09:08:19 1997
@@ -1252,6 +1252,13 @@
{
char filename[1024];
+ if (preferences.filename)
+ {
+ strncpy (filename, preferences.filename, sizeof (filename));
+ filename[sizeof (filename) - 1] = '\0';
+ }
+ else
+ strcpy (filename, "out.pnm");
gsg_get_filename ("Output Filename", filename, sizeof (filename), filename);
gtk_entry_set_text (GTK_ENTRY (ScanWin.filename_entry), filename);
-- Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/ To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com