Re: a moniker resolution problem...



On Seg, 2003-04-07 at 12:01, Jaka Mocnik wrote:
> if I attempt to open a postscript file with a colon ':' in its name, ggv
> refuses to fetch the proper control. other files work just fine.

  For some reason, you are translating ':' to %3A.  I'm not sure, but I
think you shouldn't. Use bonobo_moniker_util_escape() instead:

http://developer.gnome.org/doc/API/2.0/libbonobo/libbonobo-bonobo-moniker-util.html#bonobo-moniker-util-escape

bonobo_moniker_util_escape ()
char*       bonobo_moniker_util_escape      (const char *string,
                                             int offset);

Escapes possible separator characters inside a moniker these include '!'
and '#', the '\' escaping character is used.

string :
an unescaped string
offset :
an offset of characters to ignore
Returns :
an escaped sub-string.

> 
> here is what I get upon opening a file named "file_with_a_:.ps":
> 
> jaka fish:~/pstest$ ggv file_with_a_\:.ps
> GGV-Message: filename == file:///home/jaka/pstest/file_with_a_%3A.ps
>  
> (ggv:31411): Bonobo-WARNING **: Stream extender:
> 'file:///home/jaka/pstest/file_with_a_%3A.ps'
>  
> (ggv:31411): GGV-WARNING **: Could not get GGV control: 'Object not
> found in storage'
> 
> the exception reported makes me think that gnome-vfs was unable to find
> the file although it exists and can be read. what is it that I am doing
> wrong?
> 
> regards,
> 	jaKa

 Good luck.

-- 
Gustavo Joćo Alves Marques Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]