Bug 10575

Summary: xmessage: wrong window size displaying message with tabs
Product: xorg Reporter: Brice Goglin <brice.goglin>
Component: App/otherAssignee: Matthieu Herrb <matthieu.herrb>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: Other   
OS: All   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=46892
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch to fix as described above. none

Description Brice Goglin 2007-04-09 10:06:42 UTC
Problem reported in the Debian BTS by Kevin Ryde 8 years ago, still applies to latest xmessage:

I noticed that xmessage can get its initial window size wrong when
displaying a message containing tab characters.  For example, create a
file containing
        <tab><tab><tab>hello world
and run
        xmessage -file foo

and it shows scroll bars rather than making its window big enough.

Patch below to convert tabs to spaces in the message, both
for file and command line messages. ab stops are 8 characters (hard
coded), newlines are understood.
Comment 1 Brice Goglin 2007-04-09 10:08:07 UTC
Created attachment 9528 [details] [review]
Patch to fix as described above.
Comment 2 Julien Cristau 2007-08-13 06:44:45 UTC
This seems to be fixed in xmessage 1.0.2.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.