summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-26 12:55:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-26 12:55:14 +0000
commit4e9aeb2343825cd934674451804aeb6ace72f2c0 (patch)
treefd6b1d4390aed665e22e0ba62661700d665a1be6 /include/ruby
parent5da53fa702e567e423ce8976ba2f30dd8837a637 (diff)
downloadruby-4e9aeb2343825cd934674451804aeb6ace72f2c0.tar.gz
ruby-4e9aeb2343825cd934674451804aeb6ace72f2c0.tar.xz
ruby-4e9aeb2343825cd934674451804aeb6ace72f2c0.zip
* 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
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/encoding.h6
1 files changed, 6 insertions, 0 deletions
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 */