php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32655 sscanf not correctly works with language distinct from English
Submitted: 2005-04-10 13:27 UTC Modified: 2005-04-10 20:50 UTC
From: dia-lagl at yandex dot ru Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.3.11 OS: WinXP SP1
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:
42 + 35 = ?
Subscribe to this entry?

 
 [2005-04-10 13:27 UTC] dia-lagl at yandex dot ru
Description:
------------
sscanf() not correctly works with language distinct from English language. For example in Russian language.

Reproduce code:
---------------
From the documentation in Russian
<?php
// ???????? ???????? ?????
list($serial) = sscanf("SN/2350001", "SN/%d");
// ? ???? ????????????
$mandate = "?????? 01 2000";
list($month, $day, $year) = sscanf($mandate, "%s %d %d");
echo "???? $serial ??? ??????????: $year-" . $month . "-$day\n";
?>


Expected result:
----------------
"???? 2350001 ??? ??????????: 2000-??????-1 "

Actual result:
--------------
"???? 2350001 ??? ??????????: -?- " or something another


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-10 20:50 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC