From 3a5d1e4b775deee8c8731a97048b752a33b35922 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 19 Apr 2018 07:28:40 +0000 Subject: pack/unpack M only handles LF line breaks [Feature #14352] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- pack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pack.c') diff --git a/pack.c b/pack.c index 3413ec6c56..93577a9280 100644 --- a/pack.c +++ b/pack.c @@ -242,7 +242,8 @@ str_associated(VALUE str) * 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) -- cgit v1.2.3