[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#691642: xterm: outputting the mc5 sequence (prtr_on / turn on printer) makes xterm crash



On Sun, Oct 28, 2012 at 01:21:39AM +0200, Vincent Lefevre wrote:
> On 2012-10-27 18:34:11 -0400, Thomas Dickey wrote:
> > The documentation is correct; there is an error in your report.
> > The rules for X resource syntax are different from your expectation.
> > This is an empty string:
> > 
> > *printerCommand:
> > 
> > This is the two double-quote characters (literally):
> > 
> > *printerCommand: ""
> 
> It is a bit strange because the " is a special character:
> 
> $ echo '*printerCommand: "' | xrdb -merge
> <stdin>:1:18: warning: missing terminating " character [enabled by default]

The warning is coming from xrdb (or the C preprocessor).
It's not coming from xterm or the X libraries.

I would have expected somthing like this:

	$ echo '*printerCommand: ' | xrdb -merge

By the way, the resource is actually set in this instance to a blank,
but xterm trims leading/trailing blanks (to reduce user confusion).

The absence of quoting, and limited escapes are something I can't
fix inside xterm.
 
> Now, concerning the bug, with the empty string, there are indeed
> no effects. But I don't think that xterm should terminate when
> there is a problem with the printer command.

true - but the severity level is "normal" (a problem exposed by
an unusual configuration - not the default as was stated).

I'll investigate to see what the internals are -

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


Reply to: