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
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:
40 + 48 = ?
Subscribe to this entry?

 
 [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: Tue May 14 00:01:34 2024 UTC