[viewvc-dev] Re: [viewvc-users] Don't display binary files
"C. Michael Pilato" <[email protected]> Thu, 13 Nov 2008 16:59:05 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
JJ wrote: > In any event, the templates need some way of telling if the file is > binary or text (i.e. something other than prefer_markup, since > prefer_markup could then be set for text files or images) so they don't > allow diffs or other things that don't make sense for binary files. I understand where you're coming from, but I'm concerned about the leanings of the cost/benefit ratio. You're talking about adding significant processing overhead to avoid the display of a link which isn't necessarily going to be followed anyway (especially if the user is smart enough to know that clicking "view diffs" when looking at a JPEG is not likely to be productive), and which usually leads to relatively quick and painless "Sorry, can't do that" errors if clicked. In other words, penalizing all viewers for the benefit of few. I was with you for the most part on simply removing images from the list of things that prefer_markup (need to think through that in full, including compatibility ramifications, before fully agreeing). But the general problem of MIME types not being fully descriptive enough to answer the "is this human-readable?" question is a problem that exists *everywhere*, not just in ViewVC. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJHKMpokEGqRcG/W4RAr5rAJ9qPUHd9Tr6iogsg4YHEEJ0h0U6LACcD3c1 w0NGh/rWqLVdPNouLmiGHpI= =60t+ -----END PGP SIGNATURE-----