From 4e9aeb2343825cd934674451804aeb6ace72f2c0 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 26 Aug 2008 12:55:14 +0000 Subject: * transcode.c (rb_econv_open): disable newline conversion for ASCII incompatible encodings. (str_transcode0): don't need disable newline conversion here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 55b5bde35..fa3ebeff1 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -297,12 +297,18 @@ void rb_econv_binmode(rb_econv_t *ec); #define ECONV_UNDEF_IGNORE 0x0010 #define ECONV_UNDEF_REPLACE 0x0020 +/* effective only if output is ascii compatible */ #define ECONV_UNIVERSAL_NEWLINE_DECODER 0x0100 + +/* effective only if input is ascii compatible */ #define ECONV_CRLF_NEWLINE_ENCODER 0x0200 #define ECONV_CR_NEWLINE_ENCODER 0x0400 +/* end of flags for rb_econv_open */ + /* flags for rb_econv_convert */ #define ECONV_PARTIAL_INPUT 0x10000 #define ECONV_OUTPUT_FOLLOWED_BY_INPUT 0x20000 +/* end of flags for rb_econv_convert */ #endif /* RUBY_ENCODING_H */ -- cgit