Bug 10575 - xmessage: wrong window size displaying message with tabs
Summary: xmessage: wrong window size displaying message with tabs
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: 7.2 (2007.02)
Hardware: Other All
: medium normal
Assignee: Matthieu Herrb
QA Contact: Xorg Project Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-09 10:06 UTC by Brice Goglin
Modified: 2007-08-13 06:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to fix as described above. (1.69 KB, patch)
2007-04-09 10:08 UTC, Brice Goglin
no flags Details | Splinter Review

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.