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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: s dot le_ray+phpbugs at eutech-ssii dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 06:01:34 2025 UTC