|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-07 02:11 UTC] auroraeosrose@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
Description: ------------ This error is reported when i try execute a script that print some kind of text (GtkLabel, GtkButton, etc). The script run correctly, but without texts. The message: (hello.php-gtk:4294627475): GLib-CRITICAL **: file gconvert.c: line 500 (g_convert): assertion `from_codeset != NULL' failed I set in my php.ini this line: php-gtk.codepage = CP1252 but still don?t work. Reproduce code: --------------- <?php if (!extension_loaded('gtk')) { dl( 'php_gtk.' . PHP_SHLIB_SUFFIX); } $window = &new GtkWindow(); $window->set_border_width(10); $button = &new GtkButton('Hello World!'); $window->add($button); $window->show_all(); Gtk::main(); ?> Expected result: ---------------- A window with button saying "Hello Word!". Actual result: -------------- A window with empty button and a the message: (hello.php-gtk:4294627475): GLib-CRITICAL **: file gconvert.c: line 500 (g_convert): assertion `from_codeset != NULL' failed