Problems printing 64-bit integers i glib 2.4.8



Hi,

I've experienced problems with g_strdup_printf() in glib 2.4.8 when I try to print 64-bit integers on Windows.

I have the following line in my code:

intmax_t se_nr; /* ISO-C99 */
...
se_nr = ... /* e.g. 12345678 */
...
string = g_strdup_printf("%08"PRIdMAX"admin", se_nr);

string is assigend NULL and the error from perror(NULL) says:
"Invalid argument"

This has been working correct in previous releases, so what has happened in the new release?
I this an error in glib 2.4.8 or maybe in the prebuild package?

Additional info:
I use the prebuild Gtk+/Win32 Runtime Environment Installer 2.4.14-rc1
from http://gladewin32.sourceforge.net/

Best regards
Egon Andersen



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