php-src/ext/mbstring
Alex Dowad b5ff87ca71 Fix mbstring support for CP1252 encoding
It's a bit surprising how much was broken here.

- Identify filter was utterly and completely wrong.
- Instead of handling invalid CP1252 bytes as specified by
  `mb_substitute_character`, it would convert them to Unicode 0xFFFD
  (generic replacement character).
- When converting ISO-8859-1 to CP1252, invalid ISO-8859-1 bytes would
  be passed through silently.
- Unicode codepoints from 0x80-0x9F were converted to CP1252 bytes 0x80-0x9F,
  which is wrong.
- Unicode codepoint 0xFFFD was converted to CP1252 0x9F, which is very wrong.

Also clean up some unneeded code, and make the conversion table consistent with
others by using zero as a 'invalid' marker, rather than 0xFFFD.
2020-10-30 22:13:27 +02:00
..
libmbfl Fix mbstring support for CP1252 encoding 2020-10-30 22:13:27 +02:00
tests Add test suite for ISO-8859-x encoding verification and conversion 2020-10-16 22:25:48 +02:00
ucgendat [ci skip] Move OpenLDAP license to redistributable info file 2019-05-06 23:02:46 +02:00
config.m4 Remove redundant includes from mbstring (and make sure correct config.h is used) 2020-08-31 23:17:58 +02:00
config.w32 Remove redundant includes from mbstring (and make sure correct config.h is used) 2020-08-31 23:17:58 +02:00
CREDITS
mb_gpc.c Don't guard mbstring code with #ifdef HAVE_MBSTRING 2020-08-31 23:18:13 +02:00
mb_gpc.h Don't guard mbstring code with #ifdef HAVE_MBSTRING 2020-08-31 23:18:13 +02:00
mbstring.c Remove unused IS_SJIS1 and IS_SJIS2 macros 2020-10-14 08:31:51 +02:00
mbstring.h Don't guard mbstring code with #ifdef HAVE_MBSTRING 2020-08-31 23:18:13 +02:00
mbstring.stub.php Normalize mb_ereg() return value 2020-10-13 20:40:55 +02:00
mbstring_arginfo.h Normalize mb_ereg() return value 2020-10-13 20:40:55 +02:00
php_mbregex.c Normalize mb_ereg() return value 2020-10-13 20:40:55 +02:00
php_mbregex.h Fix [-Wundef] warning in MBString extension 2020-05-16 15:31:20 +02:00
php_onig_compat.h
php_unicode.c Don't guard mbstring code with #ifdef HAVE_MBSTRING 2020-08-31 23:18:13 +02:00
php_unicode.h Don't guard mbstring code with #ifdef HAVE_MBSTRING 2020-08-31 23:18:13 +02:00
unicode_data.h Update Unicode tables to 13.0.0 2020-03-12 11:29:51 +01:00