]> granicus.if.org Git - php/commit
Enhance mbstring support for UCS-2 text
authorAlex Dowad <alexinbeijing@gmail.com>
Fri, 4 Sep 2020 20:17:59 +0000 (22:17 +0200)
committerAlex Dowad <alexinbeijing@gmail.com>
Wed, 11 Nov 2020 09:18:59 +0000 (11:18 +0200)
commit17d82b68862901eb5157c4be3c08a21e4377f5ac
tree6db18a4351da2076cb7dff68fcbf766c3f861f47
parent6dd75478d55e57f0c0f9876b000e54b114a12b52
Enhance mbstring support for UCS-2 text

- For consistency with UTF-16, UTF-32, and UCS-4, strip leading byte
  order marks.
- Treat it as an error if string is truncated (i.e. has an odd number
  of bytes).
ext/mbstring/libmbfl/filters/mbfilter_ucs2.c