#36313 [NEW]: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(

From: Date: Tue, 07 Feb 2006 03:29:00 +0000
Subject: #36313 [NEW]: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2356@lists.php.net to get a copy of this message
From: pablo@php.net Operating system: linux ubuntu breezy PHP version: 5.1.2 PHP Bug Type: PHP-GTK related Bug description: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text( Description: ------------ GtkTreeView component complains about UTF-8 encoding when using accented characters. It also doesn't show the part of the string after the accented character. Reproduce code: --------------- <?php $window = new GtkWindow; $window->set_default_size(200,200); $window->set_position(GTK::WIN_POS_CENTER); $list = new GtkTreeView; $model = new GtkListStore(Gtk::TYPE_STRING); $list->set_model($model); $column1 = new GtkTreeViewColumn(); $cell_renderer1 = new GtkCellRendererText(); $column1->pack_start($cell_renderer1, true); $column1->set_attributes($cell_renderer1, 'text', 0); $list->append_column($column1); $data[] = array('Pedro'); $data[] = array('Maria'); $data[] = array('José'); $data[] = array('Automóvel'); $data[] = array('João'); foreach ($data as $copa) { $iter = $model->append($copa); } $window->add($list); $window->show_all(); Gtk::Main(); ?> Expected result: ---------------- no warnings, show the right string on GtkTreeView Actual result: -------------- warnings, do not show the appropriated string with accented characters. -- Edit bug report at http://bugs.php.net/?id=36313&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36313&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36313&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36313&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36313&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36313&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36313&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36313&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36313&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36313&r=support Expected behavior: http://bugs.php.net/fix.php?id=36313&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36313&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36313&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36313&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36313&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36313&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36313&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36313&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36313&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36313&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36313&r=mysqlcfg

« previous php.gtk.dev (#2356) next »