Bug #13658: accents problem with system, fpassthru and so more

From: Date: Sat, 13 Oct 2001 00:13:47 +0000
Subject: Bug #13658: accents problem with system, fpassthru and so more
Groups: php.dev 
Request: Send a blank email to php-dev+get-67875@lists.php.net to get a copy of this message
From:             yogi2@caramail.com
Operating system: WinXP build 2600
PHP version:      4.0.6
PHP Bug Type:     Unknown/Other Function
Bug description:  accents problem with system, fpassthru and so more

I actually use the latest php-gtk (0.1.1a), but the problem seems to be the
same with the latest PHP (4.0.6), both for win32. 

When we system() or fpassthru() (or same exec..) something which containts
accents, it squizzes the accents and then 
make invalid the command.

for example : 

system ("cmd nul /c move
"C:testbelenos-errances_oniriquessupport_du_néant.jpg" 
"C:testbelenos-errances_oniriquesSupport du Néant.jpeg"") ;

will be execute as :

move "C:testbelenos-errances_oniriquessupport_du_n,ant.jpg" 
"C:testbelenos-errances_oniriquesSupport du N,ant.jpeg" ;

and so the file can't be found..

-- 
Edit bug report at: http://bugs.php.net/?id=13658&edit=1



Thread (2 messages)

« previous php.dev (#67875) next »