The documentation on the source code 
(https://www.fourmilab.ch/webtools/qprint/#Download) says (p.4, #8)
"Procedure output line break outputs the standard RFC 822 line break sequence 
of carriage-return,
line-feed and resets the current output line length to zero."

That's good for multi-line output, but not good for translating a single 
non-ascii email address.
Perhaps an option might be provided for single-line output on *nix systems, to 
suppress the CR character.

The man page says nothing about RFC 822 or about the CR inclusion ...

And, just to be clear, my 'qprint' is downloaded from the Ubuntu
repository.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2045467

Title:
  qprint emits dos-style \r \n

Status in linux package in Ubuntu:
  New

Bug description:
  $ echo r.fässlin...@somewhere.com | qprint -e | od -c
  0000000   r   .   f   =   C   3   =   A   4   s   s   l   i   n   g   e
  0000020   r   @   s   o   m   e   w   h   e   r   e   .   c   o   m  \r
  0000040  \n
  0000041

  The "\r" confuses any addition of prefix "<=?UTF-8?Q?" and suffix "=>"
  when creating a quoted-printable email encoding, so that the suffix
  appears at the start of the string.

  Piping to "tr -d '\r'" resolves the issue, but shouldn't be necessary.

  
  $ lsb_release -rd
  Description:  Ubuntu 22.04.3 LTS
  Release:      22.04

  $ qprint --version
  qprint 1.1
  Last revised: 16th December 2014

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2045467/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to