ruby-changes:42640
From: nagachika <ko1@a...>
Date: Fri, 22 Apr 2016 23:42:50 +0900 (JST)
Subject: [ruby-changes:42640] nagachika:r54714 (ruby_2_3): merge revision(s) 54423, 54489: [Backport #12201] [Backport #12202]
nagachika 2016-04-23 00:39:27 +0900 (Sat, 23 Apr 2016) New Revision: 54714 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54714 Log: merge revision(s) 54423,54489: [Backport #12201] [Backport #12202] * ext/nkf/nkf-utf8/nkf.c: Merge upstream 4f3edf80a0. patched by Anton Sivakov [Bug #12201] [Bug #12202] * ext/nkf/nkf-utf8/nkf.c (mime_putc): fix typo. [Bug #12202] [ruby-core:74802] Modified directories: branches/ruby_2_3/ Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/ext/nkf/nkf-utf8/nkf.c branches/ruby_2_3/version.h Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 54713) +++ ruby_2_3/ChangeLog (revision 54714) @@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Sat Apr 23 00:33:04 2016 NARUSE, Yui <naruse@r...> + + * ext/nkf/nkf-utf8/nkf.c (mime_putc): fix typo. + [Bug #12202] [ruby-core:74802] + +Sat Apr 23 00:33:04 2016 NARUSE, Yui <naruse@r...> + + * ext/nkf/nkf-utf8/nkf.c: Merge upstream 4f3edf80a0. + patched by Anton Sivakov [Bug #12201] [Bug #12202] + Sat Apr 23 00:29:15 2016 NARUSE, Yui <naruse@r...> * lib/securerandom.rb (gen_random): to avoid blocking on Windows. Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 54713) +++ ruby_2_3/version.h (revision 54714) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.0" #define RUBY_RELEASE_DATE "2016-04-23" -#define RUBY_PATCHLEVEL 103 +#define RUBY_PATCHLEVEL 104 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 4 Index: ruby_2_3/ext/nkf/nkf-utf8/nkf.c =================================================================== --- ruby_2_3/ext/nkf/nkf-utf8/nkf.c (revision 54713) +++ ruby_2_3/ext/nkf/nkf-utf8/nkf.c (revision 54714) @@ -3834,8 +3834,8 @@ fold_conv(nkf_char c2, nkf_char c1) https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ext/nkf/nkf-utf8/nkf.c#L3834 f_prev = c1; f_line = 0; fold_state = CR; - } else if ((f_prev == c1 && !fold_preserve_f) - || (f_prev == LF && fold_preserve_f) + } else if ((f_prev == c1) + || (f_prev == LF) ) { /* duplicate newline */ if (f_line) { f_line = 0; @@ -5436,8 +5436,8 @@ mime_putc(nkf_char c) https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ext/nkf/nkf-utf8/nkf.c#L5436 mimeout_state.buf[mimeout_state.count++] = (char)c; if (mimeout_state.count>MIMEOUT_BUF_LENGTH) { eof_mime(); - for (i=0;i<mimeout_state.count;i++) { - (*o_mputc)(mimeout_state.buf[i]); + for (j=0;j<mimeout_state.count;j++) { + (*o_mputc)(mimeout_state.buf[j]); base64_count++; } mimeout_state.count = 0; Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r54423,54489 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/