diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-06 05:47:30 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-06 05:47:30 +0000 |
commit | 1724a119b9a25744b55bffc33a50aef8bdbfe3b1 (patch) | |
tree | 648d2c29f5f8c76a53f0b8faede88825cd786551 /include | |
parent | 1f311505e6c8c5d42fe074e3af5452ef7f87ec01 (diff) | |
download | ruby-1724a119b9a25744b55bffc33a50aef8bdbfe3b1.tar.gz ruby-1724a119b9a25744b55bffc33a50aef8bdbfe3b1.tar.xz ruby-1724a119b9a25744b55bffc33a50aef8bdbfe3b1.zip |
* 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
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/encoding.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |