Req #81244 [NEW]: make *printf() function Unicode-aware
| From: | flightvision at googlemail dot com | Date: | Sun, 11 Jul 2021 10:21:11 +0000 |
| Subject: | Req #81244 [NEW]: make *printf() function Unicode-aware | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234954@lists.php.net to get a copy of this message | ||
From: flightvision at googlemail dot com
Operating system:
PHP version: 8.0.8
Package: *Unicode Issues
Bug Type: Feature/Change Request
Bug description:make *printf() function Unicode-aware
Description:
------------
The *printf() functions are having problems if strings contain non-ASCII
characters.
Test script:
---------------
echo sprintf('%3.3s', 'ö12345');
echo sprintf('%3.3s', '12ö345');
Expected result:
----------------
ö12
12ö
Actual result:
--------------
ö1
12�
--
Edit bug report at https://bugs.php.net/bug.php?id=81244&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81244&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81244&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81244&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81244&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81244&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81244&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81244&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81244&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81244&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81244&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81244&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81244&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81244&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81244&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81244&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81244&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81244&r=mysqlcfg