Package: claws-mail-tools
Version: 3.13.2-1
Severity: minor
Tags: l10n

Dear Maintainer,

claws-mail-tools provides textviewer.pl to view various attachments as text.
When displaying RTF files as text, textviewer.pl uses "unrtf -t text", which
converts the RTF to ASCII (as documented in the unrtf manpage). Actually, unrtf
seems to be the second choice after rtf2text, which is not in Debian.

With "unrtf -t text" non-ASCII characters are converted to garbage, e.g. it
shows ` for ä, x for ü, a for ö, b for ß. By default unrtf converts to HTML
and preserves the international characters as HTML entities.

IMHO unrtf works as advertised here (converting to ASCII with the --text 
option),
but textviewer doesn't really convert non-english RTF to plain text as it 
should.
In an international context, plain text is not always ASCII.

textviewer should work around the known limitation of unrtf, e.g. by converting
to HTML using the unrtf standard mode and then to text using the default tools
for that, which get international characters right.

On a command line, something like "unrtf test.rtf|html2text" works fine, but
simply replacing the "unrtf -t text" invocation in textviewer.pl seems to be
not enough, so I can't offer a patch.

Thanks for your work!

Michael


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'stable-updates'), (500, 
'proposed-updates'), (500, 'stable'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages claws-mail-tools depends on:
ii  claws-mail  3.13.2-1
ii  perl        5.22.1-7
ii  python      2.7.11-1

claws-mail-tools recommends no packages.

claws-mail-tools suggests no packages.

-- no debconf information

Reply via email to