Skip to content

Commit 634f2e2

Browse files
authored
Don't expose wchar encoding to users (#7415)
The "wchar" encoding isn't really an encoding -- it's what we internally use as the representation of decoded characters. In practice, it tends to behave a lot like the 8bit encoding when used from userland, because input code units end up being treated as code points. This patch removes the wchar encoding from the public encoding list and reserves it for internal use only.
1 parent 0f92681 commit 634f2e2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/mbstring/libmbfl/mbfl/mbfl_encoding.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include "mbfl_encoding.h"
3939
#include "mbfilter_pass.h"
4040
#include "mbfilter_8bit.h"
41-
#include "mbfilter_wchar.h"
4241

4342
#include "filters/mbfilter_euc_cn.h"
4443
#include "filters/mbfilter_hz.h"
@@ -86,7 +85,6 @@
8685

8786

8887
static const mbfl_encoding *mbfl_encoding_ptr_list[] = {
89-
&mbfl_encoding_wchar,
9088
&mbfl_encoding_base64,
9189
&mbfl_encoding_uuencode,
9290
&mbfl_encoding_html_ent,

0 commit comments

Comments
 (0)