Franz Bakan wrote:
> On Wed, 6 Jun 2001 20:39:27 +0200, Henning Meier-Geinitz wrote:
> >> >So maybe the filename can be changed to contain an allowed character
> >> >instead of ":".
> >> With this patch it works: ( diff -c )
> >Yes, but it fixes only the save function. Load must also be changed.
> Load was also changed with the patch.
> >Further more it only exchanges one colon, but there can be more than
> >one, e.g. in "net:localhost:mustek:/dev/scanner".
> What about:
> #ifdef OS2
> char *colon;
> colon = strchr((filename+2),':');
> while (colon != NULL)
> colon = '-';
> colon = strchr(colon,':');
> I have included the needed diffs for xcam and xscanimage as attachement.
why don`t you apply this function to gsg_make_path in gtkglue.c:
about line 155 (in if (dev_name))
buf[len++] = '+';
buf[len++] = '-';
+ case ':':
+ buf[len++] = '_';
+ buf[lrn++] = '_';
-- Homepage: http://www.rauch-domain.de sane-umax: http://www.rauch-domain.de/sane-umax xsane: http://www.xsane.org E-Mail: mailto:Oliver.Rauch@rauch-domain.de
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail firstname.lastname@example.org
This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:12:24 PDT