php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46361 ncurses corrupts non ascii character
Submitted: 2008-10-22 08:36 UTC Modified: 2009-05-04 15:24 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: s dot le_ray+phpbugs at eutech-ssii dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 - 3 = ?
Subscribe to this entry?

 
 [2008-10-22 08:36 UTC] s dot le_ray+phpbugs at eutech-ssii dot com
Description:
------------
When using any text output function (ncurses_addstr, ncurses_mvwaddstr) with non ascii chars (?, ?, ?, etc.) it fails and output string like "M-CM-)"?.

Reproduce code:
---------------
<?php
ncurses_init();
ncurses_addstr("??????????");
ncurses_refresh();
ncurses_getch();
ncurses_end();


Expected result:
----------------
an empty screen with ?????????? on the top left

Actual result:
--------------
an empty screen with M-CM-)M-CM-)M-CM-)M-CM-)M-CM-)M-CM-)M-CM-)M-CM-)M-CM-)M-CM-) on the top left

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-04 15:24 UTC] pajoye@php.net
Please report bugs and feature requests in PECL.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 02:01:29 2024 UTC