munpack -t mishandles DOS line endings "=\r\n"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mpack (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
** Observed behavior: In quoted-printable parts, munpack -t
converts the following string
=\r\n
to \377 which is not correct. An example input file is attached.
** Expected and desired behavior: munpack -t should interpret
=\r\n
the same as:
=\n
and should convert it to the zero-length string. The example
file should produce "foobar" without any unprintable characters.
** Rationale:
1) MIME-encoded files with DOS line endings are extremely common.
2) This bug often makes the output of munpack completely useless.
The problem is insidious, hard to detect, and hard to understand.
An expert can work around it, but not all users are experts.
3) There is no possible downside to interpreting =\r\n as the
zero-length string.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mpack 1.6-18
ProcVersionSign
Uname: Linux 5.19.0-41-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 30 20:35:31 2023
InstallationDate: Installed on 2022-07-29 (275 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mpack
UpgradeStatus: No upgrade log present (probably fresh install)
The ubuntu manpage for munpack says in part:
Send all bug reports to <email address hidden>.
Alas that is a non-working email address.
Let me know if you want me to file this as a bug against the documentation.