mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 02:53:57 +02:00
* enc/trans/newline.trans (rb_universal_newline): swap src_encoding
and dst_encoding. * transcode.c (rb_econv_decorate_at): call get_transcoder_entry only once. (rb_econv_binmode): follow universal_newline change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a9887acc0
commit
817a623d13
3 changed files with 12 additions and 6 deletions
|
@ -87,7 +87,7 @@ universal_newline_finish(void *statep, unsigned char *o)
|
|||
|
||||
static const rb_transcoder
|
||||
rb_universal_newline = {
|
||||
"universal_newline", "", universal_newline,
|
||||
"", "universal_newline", universal_newline,
|
||||
TRANSCODE_TABLE_INFO,
|
||||
1, /* input_unit_length */
|
||||
1, /* max_input */
|
||||
|
@ -129,4 +129,3 @@ Init_newline(void)
|
|||
rb_register_transcoder(&rb_crlf_newline);
|
||||
rb_register_transcoder(&rb_cr_newline);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue