ruby-changes:50984
From: naruse <ko1@a...>
Date: Thu, 19 Apr 2018 16:28:45 +0900 (JST)
Subject: [ruby-changes:50984] naruse:r63191 (trunk): pack/unpack M only handles LF line breaks [Feature #14352]
naruse 2018-04-19 16:28:40 +0900 (Thu, 19 Apr 2018) New Revision: 63191 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63191 Log: pack/unpack M only handles LF line breaks [Feature #14352] Modified files: trunk/pack.c Index: pack.c =================================================================== --- pack.c (revision 63190) +++ pack.c (revision 63191) @@ -242,7 +242,8 @@ str_associated(VALUE str) https://github.com/ruby/ruby/blob/trunk/pack.c#L242 * H | String | hex string (high nibble first) * h | String | hex string (low nibble first) * u | String | UU-encoded string - * M | String | quoted printable, MIME encoding (see RFC2045) + * M | String | quoted printable, MIME encoding (see also RFC2045) + * | | (text mode but input must use LF and output LF) * m | String | base64 encoded string (see RFC 2045, count is width) * | | (if count is 0, no line feed are added, see RFC 4648) * P | String | pointer to a structure (fixed-length string) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/