Re: Compiling on OS/2

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Sat Jun 09 2001 - 07:55:04 PDT

  • Next message: Derek Martin: "Re: Fwd: Re: Hi -- USB UMAX Astra 2200 question"

    Franz Bakan wrote:
    >
    > Hi Oliver,
    >
    > On Sat, 09 Jun 2001 09:48:00 +0200, Oliver Rauch wrote:
    >
    > >I applied this patch to sane-frontends/src/gtkglue.c to SANE-CVS.
    > >+#ifdef OS2
    > >+ case ':':
    > >+ buf[len++] = '+';
    > >+ buf[len++] = '_';
    > >+ break;
    > >+#endif
    >
    > Works, but it would be better if there is no
    > + buf[len++] = '+';
    > because of the special meaning of '+' for example
    > in copy commands:
    > I cant use 'copy foo+1.ext bar.ext'
    > I have to type 'copy "foo+1.ext" bar.ext'
    > instead.
    >
    > I don't know what it's good for anyway.

    Hi Franz,

    1) gtkglue.c: gsg_make_path does change the dev_name part
    of the path in the following way:
    + -> ++
    / -> +­

    so it is consistent to add
    : -> +_

    2) The transformation is done for the device name of the backend/scanner.
    I donīt think you have to copy it very often

    3) What is the path separator in OS2 (\ or /)?
    If it is not "/" do we have to translate it?

    Bye
    Oliver

    -- 
    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 majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sat Jun 09 2001 - 07:47:26 PDT