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

Re: X Strike Force X.Org X11 SVN commit: r3962 - trunk/xserver/xorg-server/debian



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?

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


Reply to: