]> granicus.if.org Git - php/commit
Remove useless mbstring encoding 'CP50220-raw'
authorAlex Dowad <alexinbeijing@gmail.com>
Wed, 7 Oct 2020 20:54:39 +0000 (22:54 +0200)
committerAlex Dowad <alexinbeijing@gmail.com>
Fri, 15 Jan 2021 19:55:41 +0000 (21:55 +0200)
commitfcbe45de1042c06c00cc9f957c7654d4835dafa3
tree2e62317778cde9fe4f618467ee8d6a37241745ec
parent888f5d7729878caa73908a0cc09823d611d4044b
Remove useless mbstring encoding 'CP50220-raw'

CP50220 is a variant of ISO-2022-JP invented by MicroSoft, which handles some
Unicode characters which are not representable in ISO-2022-JP by converting
them to similar characters which are representable.

What, then, is CP50220-raw? An Internet search turns up absolutely nothing.
Reference works which I consulted don't say anything about it. Other text
conversion libraries don't support it.

From looking at the code: It's just the same as CP50220, but it accepts
unmapped JIS X 0208 characters passed through from other Japanese encodings
and silently encodes them using the usual ISO-2022-JP escape sequence and
representation for JIS X 0208 characters.

It's hard to see how this could be useful. OK, let me come out and say it:
it's _not_ useful. We can confidently jettison this (mis)feature.
ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c
ext/mbstring/libmbfl/filters/mbfilter_cp5022x.h
ext/mbstring/libmbfl/mbfl/mbfl_encoding.c
ext/mbstring/libmbfl/mbfl/mbfl_encoding.h