RE: [viewvc-users] Binary Files open in browser as garbage.

Raghu Kumar C <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <E812CE8265978344B7D5374A0924AF34025FE50E__26665.4913234108$1251179383$gmane$org@BLREX01.in.corp.tavant.com>
Thank you, Michael. I will cross-check and confirm this.

> -----Original Message-----
> From: C. Michael Pilato [mailto:[email protected]]
> Sent: Monday, August 24, 2009 20:58 PM
> To: Raghu Kumar C
> Cc: [email protected]
> Subject: Re: [viewvc-users] Binary Files open in browser as garbage.
> 
> Raghu Kumar C wrote:
> > Hi,
> >
> > 	How can I disable binary files being displayed as garbage in
> > browser?
> 
> Beginning in ViewVC 1.1.2, you should be able to make a small template
> change to accomplish this.  At the top of the templates/file.ezt file,
> you'll see this:
> 
>   [#
------------------------------------------------------------------------
- ]
>   [# CUSTOMIZE ME: To avoid displaying "binary garbage" -- the
contents of     ]
>   [# files with non-human-readable file formats -- change the value of
the     ]
>   [# hide_binary_garbage variable below to 1.
]
>   [#
------------------------------------------------------------------------
- ]
> 
>   [define hide_binary_garbage]0[end]
> 
> Simply change that last line to:
> 
>   [define hide_binary_garbage]1[end]
> 
> and ViewVC should start hiding file content for files it doesn't
believe are
> human-readable (based on their calculated MIME type), and will instead
show
> a link to the "download" view of that file.
> 
> --
> C. Michael Pilato <[email protected]>
> CollabNet   <>   www.collab.net   <>   Distributed Development On
Demand

Webinar: increase profitability and cut warranty spend. Visit www.tavant.com/webinar.url

Any comments or statements made in this email are not necessarily those of Tavant Technologies.
The information transmitted is intended only for the person or entity to which it is addressed and may 
contain confidential and/or privileged material. If you have received this in error, please contact the 
sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies 
may be subject to our monitoring procedures.

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2386911

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.