mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
* include/ruby/encoding.h (ECONV_UNDEF_HEX_CHARREF): defined.
* transcode.c (output_hex_charref): new function. (rb_econv_convert): call output_hex_charref if ECONV_UNDEF_HEX_CHARREF. (Init_transcode): Encoding::Converter::UNDEF_HEX_CHARREF added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d3598ee60
commit
c500c37fbc
4 changed files with 94 additions and 0 deletions
|
@ -255,6 +255,7 @@ void rb_econv_binmode(rb_econv_t *ec);
|
|||
|
||||
#define ECONV_UNDEF_MASK 0x00f0
|
||||
#define ECONV_UNDEF_REPLACE 0x0020
|
||||
#define ECONV_UNDEF_HEX_CHARREF 0x0030
|
||||
|
||||
/* effective only if output is ascii compatible */
|
||||
#define ECONV_UNIVERSAL_NEWLINE_DECODER 0x0100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue