From 1724a119b9a25744b55bffc33a50aef8bdbfe3b1 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 6 Sep 2008 05:47:30 +0000 Subject: * include/ruby/encoding.h (ECONV_HTML_TEXT_ENCODER): new constant. (ECONV_HTML_ATTR_ENCODER): ditto. * transcode.c (rb_econv_open): check ECONV_HTML_TEXT_ENCODER and ECONV_HTML_ATTR_ENCODER. (Init_transcode): Encoding::Converter::HTML_TEXT_ENCODER and Encoding::Converter::HTML_ATTR_ENCODER defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 1994bcdc5..3959ae478 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -263,6 +263,8 @@ void rb_econv_binmode(rb_econv_t *ec); /* usable only if source encoding is ascii compatible */ #define ECONV_CRLF_NEWLINE_ENCODER 0x0200 #define ECONV_CR_NEWLINE_ENCODER 0x0400 +#define ECONV_HTML_TEXT_ENCODER 0x0800 +#define ECONV_HTML_ATTR_ENCODER 0x1000 /* end of flags for rb_econv_open */ -- cgit