summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2021-01-04 22:03:21 +0200
committerAlex Dowad <alexinbeijing@gmail.com>2021-01-14 22:26:24 +0200
commitd497c0e96f0347707df717aba047e059658f3f68 (patch)
tree4d31006fac04d3afb957bbf640afb5d17e4f77b8 /ext/pcre/php_pcre.c
parent40384da36a1505527fe3c99b731ec62e6922f6ac (diff)
downloadphp-git-d497c0e96f0347707df717aba047e059658f3f68.tar.gz
JIS7/JIS8 encoding: use JISX0201 for U+203E (overline)
In other legacy Japanese encodings like Shift-JIS, we are now using a specific JISX 0208 character for the Unicode overline (U+203E). Previously, the single byte 0x7E was used, but an ASCII 0x7E does not represent an overline, so this was changed. However, JIS7/JIS8 can represent characters in the JISX 0201 character set as well. That character set also includes an overline character, which takes less bytes to encode than the corresponding JISX 0208 character, so we'll use it. This is what mbstring had been doing for a long time; but it changed as a side effect of the recent changes to how U+203E is encoded in Shift-JIS, etc. So change it back.
Diffstat (limited to 'ext/pcre/php_pcre.c')
0 files changed, 0 insertions, 0 deletions