#45132 [Asn]: escapeshellcmd removes swedish characters

From: Date: Thu, 29 May 2008 23:09:34 +0000
Subject: #45132 [Asn]: escapeshellcmd removes swedish characters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125356@lists.php.net to get a copy of this message
 ID:               45132
 Updated by:       felipe@php.net
 Reported By:      tom at collegit dot se
 Status:           Assigned
 Bug Type:         Strings related
 Operating System: Linux www2 2.6.24.7-grsec
 PHP Version:      5.2.6
 Assigned To:      iliaa
 New Comment:

Try using:
setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");


Previous Comments:
------------------------------------------------------------------------

[2008-05-29 22:55:58] jani@php.net

Ilia, did that fix get into actual release..?

------------------------------------------------------------------------

[2008-05-29 22:53:54] tom at collegit dot se

Description:
------------
Since my web server got updated to 5.2.6 escapeshellcmd() has started 
removing all Swedish characters from user input. Looks a lot like bug 
#44564.

'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-
mysql=/usr/local/mysql' '--enable-debug=no' '--enable-track-vars' '--
with-imap=/usr/local/imap' '--with-mcrypt' '--with-mhash'
'--with-dom'

'--with-gd' '--with-jpeg-dir' '--enable-ftp' '--with-freetype-
dir=/usr' '--with-zlib-dir=/usr' '--with-png-dir=/usr' '--enable-
dbase' '--with-gettext' '--with-zlib'
'--enable-inline-optimization' 
'--with-openssl' '--with-curl' '--with-curlwrappers'
'--enable-exif' 
'--with-imap-ssl' '--enable-bcmath' '--enable-mbstring'
'--enable-
wddx' '--with-xsl' '--with-pdo-mysql=/usr/local/mysql' '--with-
mysqli=/usr/local/mysql/bin/mysql_config' '--enable-soap' '--enable-
sockets' '--with-mssql' '--with-ming' '--with-pspell'
'--enable-
calendar' '--enable-bcmath' '--with-t1lib' '--with-
pgsql=/usr/local/pgsql' '--with-tidy' '--enable-zip'





Reproduce code:
---------------
$test = "åäö";
$test = (escapeshellcmd($test));
print $test;


Expected result:
----------------
"åäö"

Actual result:
--------------
""


------------------------------------------------------------------------


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



Thread (7 messages)

« previous php.bugs (#125356) next »