php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #509 trailing extended ansi caracters not returned in the array passed to exec()
Submitted: 1998-07-05 00:43 UTC Modified: 1998-11-23 01:25 UTC
From: cbocquet at fth dot net Assigned: jim (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cbocquet at fth dot net
New email:
PHP Version: OS:

 

 [1998-07-05 00:43 UTC] cbocquet at fth dot net
if test is a program which returns this french text:
libert?
?galit?
fraternit?

if you execute exec("test", $result, $status), you'll have:
$result[0] = libert
$result[1] = ?galit
$result[2] = fraternit


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-23 01:25 UTC] jim
Works fine on my Linux system. exec() does try to chop trailing whitespace on
each of the lines, so perhaps the Solaris isspace() character interprets such
characters as spaces. You might try changing the locale setting to see if that
helps.

---

I'm assuming that's what it was and am closing this bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 19:01:28 2024 UTC