#30333 [NEW]: fscanf() and() not working correctly with other then English language
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
Thread (14 messages)
- altuhov at nm dot ru
- derick@php.net#30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- tony2001@php.net#30333 [Fbk]: fscanf() and() not working correctly with other then English language
- altuhov at nm dot ru#30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- iliaa@php.net#30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- altuhov at nm dot ru#30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- iliaa@php.net#30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- altuhov at nm dot ru#30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- profic at nospam dot kursknet dot ru#30333 [Com]: fscanf() and() not working correctly with other then English language
- profic at nospam dot kursknet dot ru#30333 [Com]: fscanf() and() not working correctly with other then English language
- tony2001@php.net#30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- altuhov at nm dot ru#30333 [Fbk->Opn]: fscanf() and() not working correctly with other then English language
- sniper@php.net#30333 [Opn->Fbk]: fscanf() and() not working correctly with other then English language
- php-bugs at lists dot php dot net#30333 [Fbk->NoF]: fscanf() and() not working correctly with other then English language