Bug #62934 [Asn->Csd]: mb_convert_kana() does not convert iteration marks
| From: | nikic@php.net | Date: | Fri, 28 Jul 2017 11:04:16 +0000 |
| Subject: | Bug #62934 [Asn->Csd]: mb_convert_kana() does not convert iteration marks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210393@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62934&edit=1
ID: 62934
Updated by: nikic@php.net
Reported by: scin dot ichi at gmail dot com
Summary: mb_convert_kana() does not convert iteration marks
-Status: Assigned
+Status: Closed
Type: Bug
Package: mbstring related
Operating System: any platform
PHP Version: 5.3.16
Assigned To: moriyoshi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e3d25e78eb73c7b7bce0cd175578f7ce32741c5f
Log: Fixed bug #62934
Previous Comments:
------------------------------------------------------------------------
[2012-09-04 17:27:26] ajf at ajf dot me
Had a look. Turns out this is an issue with libmbfl, which mbstring uses. Not
sure if it can be updated or not, someone else should look into it. But it's not
an issue with mbstring itself, mb_convert_kana passes through to
mbl_ja_jp_hantozen.
------------------------------------------------------------------------
[2012-08-26 11:03:05] scin dot ichi at gmail dot com
Description:
------------
mb_convert_kana() does not convert japanese iteration marks (odori-ji).
* Hiragana to Katakana ($option = 'C')
ã and ã must be converted ã½ and ã¾
* Katakana to Hiragana ($option = 'c')
ã½ and ã¾ must be converted ã and ã
Test script:
---------------
<?php
echo mb_convert_kana('ãããããã¢ã½ã¹ã¾ã¡',
'C', 'UTF-8') . PHP_EOL;
echo mb_convert_kana('ãããããã¢ã½ã¹ã¾ã¡',
'c', 'UTF-8') . PHP_EOL;
Expected result:
----------------
ã¢ã½ã¹ã¾ã¡ã¢ã½ã¹ã¾ã¡
ãããããããããã
Actual result:
--------------
ã¢ãã¹ãã¡ã¢ã½ã¹ã¾ã¡
ããããããã½ãã¾ã
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62934&edit=1