Hmmm.  Didn't try file.  I initially tried to list the contents
through "tar -ztvf", but it told me it wasn't a compressed file.
Then, just for kicks, I tried opening it in vi and there it was - nice
and textual.  I'll run "file" on it as soon as I get to the office and
let you know.

Thanks.

On 7/25/06, Emmanuel Blot <[EMAIL PROTECTED]> wrote:
The trace you sent:

 File "/usr/share/doc/trac/contrib/trac-post-commit-hook.gz", line 1
  —/åBtrac-post-commit-hookšIV>ÍR5±biÅ

looks like binary, not text.

What does the "file" command tell about this file?

Manu

On 7/25/06, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
> It's actually not a compressed file.  It just has that extension for
> some reason.  I assumed the same thing, but it's a plain text python
> script.  Strange, I know, but true.
>
> On 7/25/06, Emmanuel Blot <[EMAIL PROTECTED]> wrote:
> > > When attempting to run the script "manually", I get this fun error:
> > > sys:1: DeprecationWarning: Non-ASCII character '\x8b' in file
> > > /usr/share/doc/trac/contrib/trac-post-commit-hook.gz on line 1,
> >
> > .gz are compressed files and cannot be executed. (think of a ZIP file).
> > You need to decompress the file first:
> >
> > gunzip trac-post-commit-hook.gz #will decompress in-place
> > or
> > gunzip -c trac-post-commit-hook.gz > trac-post-commit-hook #to keep
> > the original, gzipped file
> >
> > HTH,
> > Manu
> > _______________________________________________
> > Trac mailing list
> > [email protected]
> > http://lists.edgewall.com/mailman/listinfo/trac
> >
>
>
> --
>
> Rob Wilkerson
> _______________________________________________
> Trac mailing list
> [email protected]
> http://lists.edgewall.com/mailman/listinfo/trac
>


--
Manu
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac



--

Rob Wilkerson
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to