On Wed, 27 Jul 2005 14:19:29 +0100 Hazael Maldonado Torres <[EMAIL PROTECTED]> wrote:
> > > > > >Hi! > > > >I have found a problem in windows version of glib 2.4.7. > >in code > > va_start (args, fmt); > > in = g_strdup_vprintf (fmt, args); > > va_end (args); > >when fmt is for example "blablabla 100\%" the pointer 'in' is NULL, > >when fmt is for example "blablabla %c",'%' the problem does not > >occure. > > > >could this be a bug in g_strdup_vprintf or somewhere else? > > > >regards > >hs > > > > As far as I can say, if you want the '%' character printed using any > *printf* function you should escape it using the '%' character rather > than '\'. Though glib should check for the return value from > g_strdup_vprintf() and propagate the error. %% works fine, thanks. but it is strange that \% works on linux and on windows it doesn't. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list