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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dia-lagl at yandex dot ru
New email:
PHP Version: OS:

 

 [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: Fri Apr 19 13:01:30 2024 UTC