1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 05:32:28 +02:00
Files
archived-php-src/ext
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
..
2020-10-07 14:58:43 +02:00
2020-10-26 11:06:10 +01:00
2020-10-22 14:50:52 +02:00
2020-10-26 13:15:03 +01:00
2020-10-02 11:56:16 +02:00
2020-10-30 15:49:48 +01:00
2020-10-23 16:56:23 +02:00
2020-10-22 15:07:01 +02:00
2020-10-15 10:17:55 +02:00
2020-10-09 15:25:23 +02:00
2020-10-23 20:48:52 +01:00
2020-10-24 15:36:05 +02:00
2020-09-03 15:07:03 +02:00
2020-10-29 16:42:00 +01:00
2020-10-29 13:10:32 +01:00
2020-10-30 22:07:41 +02:00
2020-10-30 17:29:33 +01:00
2020-10-28 12:18:26 +01:00
2020-10-29 14:18:22 +01:00
2020-10-13 12:32:08 +02:00
2020-10-12 18:09:08 +02:00
2020-10-30 17:29:33 +01:00
2020-10-14 16:58:07 +02:00
2020-10-06 09:49:40 +02:00
2020-10-22 14:56:00 +02:00
2020-10-30 17:29:33 +01:00
2020-10-30 17:23:18 +01:00
2020-09-30 21:07:25 +02:00
2020-09-18 14:28:32 +02:00
2020-09-18 14:28:32 +02:00
2020-10-08 17:10:52 +02:00
2020-10-13 10:41:43 +02:00
2020-10-30 17:29:33 +01:00
2020-10-22 16:05:57 +02:00
2020-10-09 10:43:35 +02:00
2020-10-08 10:28:50 +02:00
2020-10-08 10:28:50 +02:00
2020-10-26 11:40:06 +01:00