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
 [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: Fri May 24 00:01:31 2024 UTC