Re: [viewvc-users] Using 'view=co' in IE8

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
David Aldrich wrote:
> Hi
> 
> Sorry if this question has been asked many times before...
> 
> Using ViewVC 1.0.5, if I 'view' a source file, stored in a svn repo,
> using IE8 I see the file nicely in the browser.  However, if I 'download'
> it in IE8 the source file appears to be stripped of all line endings and
> the view is a mess.
> 
> The 'download' (i.e. ?view=co) url is useful to me because I use it in
> our wiki to display certain source files.
> 
> Is my problem caused by incorrect setting of the 'eol-style' svn property
> (currently set to 'native')? Or should I set the mime type property? Or
> is it caused by something else?

If anything, the problem would be that you've set the svn:eol-style property
at all.  See, when you set that property, Subversion chooses to store your
file in what it calls "repository normal format", which is Unix-style LF
line endings only.  It then becomes the Subversion client's job to translate
those LFs into Windows-style CRLFs.  But when using ViewVC, there's no
Subversion client to speak of.  ViewVC serves up the file as it is stored in
the repository (normalized to LF line endings, and with any keywords not
expanded).  To a Windows machine, the result will look like a file with all
the lines running together.


-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

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

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkt7/VMACgkQokEGqRcG/W4tXgCfarbDZRPkGRbLdeEQoGqOHV6H
40wAn0Sp9tb72lGLzRBNhEl4sfTmHMYN
=blNP
-----END PGP SIGNATURE-----
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.