Skip to content

fix: MIME::QuotedPrint empty EOL matches Perl (Data::ICal)#738

Merged
fglock merged 1 commit into
masterfrom
fix/mime-quotedprint-empty-eol
May 15, 2026
Merged

fix: MIME::QuotedPrint empty EOL matches Perl (Data::ICal)#738
fglock merged 1 commit into
masterfrom
fix/mime-quotedprint-empty-eol

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 15, 2026

Summary

  • Align MIME::QuotedPrint::encode_qp with Perl when the second argument is an empty string: do not insert quoted-printable soft line breaks (= + EOL); only apply the existing binary/control-character encoding behavior.
  • Fixes jcpan -t Data::ICal, which calls MIME::QuotedPrint::encode with '' for QUOTED-PRINTABLE values (Data::ICal::Property). Previously, spurious mid-string breaks turned syncml into sy=ncml and failed t/09.mime.t and t/10.mime-vcal10.t.

Test plan

  • make
  • timeout 600 ./jcpan -t Data::ICal

Perl encode_qp($str, '') disables quoted-printable line wrapping while still
encoding non-printables. Data::ICal relies on this for QUOTED-PRINTABLE
properties; mid-string '= splits corrupted syncml and failed jcpan -t Data::ICal.

Generated with [Cursor](https://cursor.com/docs)

Co-Authored-By: Cursor <noreply@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@fglock fglock merged commit b5adbd1 into master May 15, 2026
2 checks passed
@fglock fglock deleted the fix/mime-quotedprint-empty-eol branch May 15, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant