On Thu, Nov 16, 2006 at 07:15:53PM +0100, Julien Cristau wrote:
> On Tue, Nov  7, 2006 at 01:33:19 -0500, X Strike Force SVN Repository Admin 
> wrote:
> 
> > Author: julien
> > Date: 2006-11-07 01:33:19 -0500 (Tue, 07 Nov 2006)
> > New Revision: 3962
> > 
> > Added:
> >    trunk/xserver/xorg-server/debian/xserver-xorg-core.bug.script
> > Modified:
> >    trunk/xserver/xorg-server/debian/changelog
> >    trunk/xserver/xorg-server/debian/rules
> > Log:
> > * Add reportbug script stolen from the monolith, to add the user's config
> >   and log file in every bug report.
> > 
> The Xorg.0.log on my laptop contains non-printable chars, for some
> reason, and reportbug crashes because it tries to convert them to utf8
> (bug#398904).
> If nobody objects, I think I'll commit the following patch:
> 
> --- debian/xserver-xorg-core.bug.script (revision 3999)
> +++ debian/xserver-xorg-core.bug.script (working copy)
> @@ -88,7 +88,7 @@
>      ls -dl "$XORGCONFIG" >&3
>      printf "\n" >&3
>      printf "Contents of $XORGCONFIG:\n" >&3
> -    cat "$XORGCONFIG" >&3
> +    iconv -c -t ascii "$XORGCONFIG" >&3
>      printf "\n" >&3
>  else
>      printf "$XORGCONFIG does not exist.\n" >&3
> ---
> This should make sure that any non-ascii characters from the log file
> are stripped from what's output to reportbug.
> Also, it would be nice if there was a way to gzip the log and attach it,
> instead of just appending it to the report, since it can be quite large
> and potentially not make it to the list because of that (my log file
> seems to be around 100k). Does anyone know if there is a way to do that?

You may be able to just pipe it to gzip, although you'd have to test it to
be sure. I have no real experience with reportbug scripts though, so I
can't really tell you how to do that.

 - David Nusinow


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to