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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon May 13 21:01:31 2024 UTC