From:             altuhov at nm dot ru
Operating system: WinXP SP2
PHP version:      5.0.2
PHP Bug Type:     Filesystem function related
Bug description:  fscanf() and() not working correctly with other then English language

Description:
------------
Functions fscanf() and sscanf() is not working correctly with other then
English language in the handle.

In my example was used Russian language.

Reproduce code:
---------------
<?php 
$cont="�������� �������� ����������";
// get author info and generate DocBook entry 
$n = sscanf($cont,"%s %s %s"); 
print_r($n);
?>

Expected result:
----------------
Array ( [0] => �������� [1] => �������� [2] => ���������� )

Actual result:
--------------
Array ( [0] => �� [1] => ��� [2] => � )

-- 
Edit bug report at http://bugs.php.net/?id=30333&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30333&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30333&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30333&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30333&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30333&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30333&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30333&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30333&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30333&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30333&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30333&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30333&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30333&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30333&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30333&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30333&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30333&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30333&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30333&r=mysqlcfg

Reply via email to