[Kde-print-devel] [Bug 126044] New: Newlines in the Comments text are not escaped.

Ray Lischner rl at tempest-sw.com
Fri Apr 21 20:48:09 CEST 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
           Summary: Newlines in the Comments text are not escaped.
           Product: kdeprint
           Version: unspecified
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: kdeprintfax
        AssignedTo: kde-print-devel kde org
        ReportedBy: rl tempest-sw com

Version:            (using KDE KDE 3.5.2)
Installed from:    SuSE RPMs
OS:                Linux

The Comments edit box lets the user type multiple lines of text. Indeed, because word wrap is disabled, it encourages the user to enter hard newline characters. Unfortunately, those newline characters are passed to the fax program, which can't cope.

HylaFax is the only fax program that actually does anything with comments, and if your comments include a hard newline, sendfax reports the following error:

500 'JPARM COMMENTS "testing.': Syntax error, unmatched quote mark

You can see how other programs might copy, too. For example, use "echo <%comment>" as a custom fax program. If the Comments contain a hard newline, the following error results:

Sending to fax using: echo <'testing.
more testing'> 
/bin/sh: -c: line 1: syntax error near unexpected token `newline'
/bin/sh: -c: line 1: `more testing'>  '

A workaround for HylaFax is to use \n instead of newline. That makes the text hard to read and hard to edit, but at least, you can get a hard newline in the fax comments.

More information about the Kde-print-devel mailing list