php-src/ext/mbstring/libmbfl
Nikita Popov fb9bf5b64b Revert/fix substitution character fallback
The introduced checks were not correct in two respects:
 * It was checked whether the source encoding of the string matches
   the internal encoding, while the actually relevant encoding is
   the *target* encoding.
 * Even if the correct encoding is used, the checks are still too
   conservative. Just because something is not a "Unicode-encoding"
   does not mean that it does not map any non-ASCII characters.

I've reverted the added checks and instead adjusted mbfl_convert
to first try to use the provided substitution character and if
that fails, perform the fallback to '?' at that point. This means
that any codepoint mapped in the target encoding should now be
correctly supported and anything else should fall back to '?'.
2017-08-03 21:53:59 +02:00
..
filters Fixed bug #62934 2017-07-28 13:02:25 +02:00
mbfl Revert/fix substitution character fallback 2017-08-03 21:53:59 +02:00
nls - Update the bundled libmbfl to the latest on upstream. 2010-03-12 04:55:37 +00:00
tests trailing whitespace removal 2015-01-10 15:07:38 -08:00
AUTHORS
buildconf
config.h.in - Update the bundled libmbfl to the latest on upstream. 2010-03-12 04:55:37 +00:00
config.h.w32 - Fix win32 build. (notified by Rob. Thanks) 2010-03-15 14:19:51 +00:00
configure.ac Use modern autotools name of configure.ac instead of configure.in 2017-01-27 06:07:40 +00:00
DISCLAIMER
INSTALL
LICENSE
Makefile.am - Update the bundled libmbfl to the latest on upstream. 2010-03-12 04:55:37 +00:00
NEWS Replaces php5 with php7, without whitespace changes. 2014-09-20 10:01:44 +02:00
README

This is Libmbfl, a streamable multibyte character code filter and
converter library.

See LICENSE and DISCLAIMER for licensing information.

See the file INSTALL for building and installation instructions.

# $Id$