Re: glib bug on windows?
- From: Hubert Sokołowski <h sokolowski wsisiz edu pl>
- To: gtk-app-devel-list gnome org
- Subject: Re: glib bug on windows?
- Date: Wed, 27 Jul 2005 16:18:28 +0200
On Wed, 27 Jul 2005 14:19:29 +0100
Hazael Maldonado Torres <gtk-development itxolutions com> 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]