[PHP-BUG] Bug #63892 [NEW]: Stock browser demo exception with some locales
[email protected] ("gianluca dot faieta at gmail dot com") Thu, 03 Jan 2013 03:19:31 -0500
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
From: gianluca dot faieta at gmail dot com
Operating system: Windows
PHP version: Irrelevant
Package: PHP-GTK related
Bug Type: Bug
Bug description:Stock browser demo exception with some locales
Description:
------------
The stock icons browser from php-gtk-src demos throws exception when run
under
italian, spanish and french locales (Control Panels > Region and Language).
It
works normally when run under english, german and dutch locales.
The script was tested on Windows Server 2008 SP2, Windows XP SP2 and
Windows 7
with same error. Multiple PHP binaries were tested, with same outcome:
- http://emsmith.net/gtk/php-5.3.15-nts-php-gtk-snapshot.zip
- http://emsmith.net/gtk/php-5.4.5-nts-php-gtk-snapshot.zip
- http://emsmith.net/gtk/php-gtk-2012-5.4-snapshot.zip
Old php-gtk package works (http://gtk.php.net/do_download.php?
download_file=php-gtk-2.0.1-win32-nts.zip)
Test script:
---------------
https://raw.github.com/php/php-gtk-src/master/demos/stock-browser.php
Actual result:
--------------
Warning: Could not convert item label from UTF-8 in
C:\zdemos\stock-browser.php
on line 120
Fatal error: Uncaught exception 'PhpGtkGErrorException' with message
'Sequenza di
byte non valida nell'ingresso per la conversione' in C:\zdemos\stock-
browser.php:120
Stack trace:
#0 C:\zdemos\stock-browser.php(120): Gtk::stock_lookup('gtk-go-down')
#1 C:\zdemos\stock-browser.php(52): StockItemBrowserDemo->create_model()
#2 C:\zdemos\stock-browser.php(253): StockItemBrowserDemo->__construct()
#3 {main}
thrown in C:\zdemos\stock-browser.php on line 120
--
Edit bug report at https://bugs.php.net/bug.php?id=63892&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63892&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63892&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63892&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63892&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63892&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63892&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63892&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63892&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63892&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63892&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63892&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63892&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63892&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63892&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63892&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63892&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63892&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63892&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63892&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63892&r=mysqlcfg