LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: saul_porras at live dot com dot mx Date: Wed Aug 27 10:43:39 2008 Subject: #45938 [NEW]: ñ is not supported
From: saul_porras at live dot com dot mx
Operating system: windows
PHP version: 5.2.6
PHP Bug Type: PHP-GTK related
Bug description: ñ is not supported
Description:
------------
that is a small function however when i type á é ó í ú it gives me the
character ok i can even save it on to a mysql table fine. but when i type
ñ it gives me a n i have tested it on many ways but i think that the
get_text() function is giving me that error.
i use the php 5.2 and gtk 2.0.1 and older versions tested too
Reproduce code:
---------------
<?php
$window = new GtkWindow();
$window->set_size_request(400, 240);
$window->connect_simple('destroy', array('Gtk','main_quit'));
$window->add($vbox = new GtkVBox());
// display title
$title = new GtkLabel("setup entry");
$title->modify_font(new PangoFontDescription("Times New Roman Italic
10"));
$title->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse("#0000ff"));
$title->set_size_request(-1, 40);
$vbox->pack_start($title, 0, 0);
$item_number = new GtkEntry();
$item_number->connect('insert-text', 'on_insert'); // note 1
$hbox = new GtkHBox();
$hbox->pack_start(new GtkLabel('Item Number: '), 0, 0);
$hbox->pack_start($item_number, 0, 0);
$vbox->pack_start($hbox);
$vbox->pack_start(new GtkLabel("Note: item numbers should contain only
numbers 0 to 9"), 0, 0);
$window->show_all();
Gtk::main();
function on_insert($entry, $text, $len, $position) {
$text = substr($text, 0, $len); // this is the new text inserted
echo $text;
return false; // yes, let the default handler display the number
}
?>
Expected result:
----------------
get_text show me the ñ
Actual result:
--------------
shows a n
--
Edit bug report at http://bugs.php.net/?id=45938&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45938&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45938&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45938&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45938&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45938&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45938&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45938&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45938&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45938&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45938&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45938&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45938&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45938&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45938&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45938&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45938&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45938&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45938&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45938&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45938&r=mysqlcfg
| Navigate in group php.gtk.dev at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |