Where to download unix2dos for Windows?

Michael Sperber sperber at informatik.uni-tuebingen.de
Tue Aug 21 09:52:56 CDT 2007


This has to be the stupidest question ever ...  The manpage to hgrc
refers to a pair of unix2dos/dos2unix programs that seem to correspond
to the Lin/Wuebben unix2dos for Linux.  Can anybody tell me where to
download binaries for this?  (Or give otherwise accessible instructions
how to make CR/LF conversion actually work on Windows.)

All the other unix2dos/dos2unix programs I could find, specifically the
Cygwin one, all convert in-situ, which doesn't seem to work for
Mercurial.  Trying to use I/O redirection like so:

[encode]
**.{c,h,scm,txt} = tempfile: dos2unix < INFILE > OUTFILE

with the Cygwin programs gets me an unknown exception from Mercurial
(maybe because of the filename translation):

** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 2ef14e29e538)
Traceback (most recent call last):
  File "hg", line 11, in ?
  File "mercurial\commands.pyc", line 3141, in run
  File "mercurial\commands.pyc", line 3138, in dispatch
  File "mercurial\cmdutil.pyc", line 38, in runcatch
  File "mercurial\cmdutil.pyc", line 379, in dispatch
  File "mercurial\cmdutil.pyc", line 432, in runcommand
  File "mercurial\cmdutil.pyc", line 388, in checkargs
  File "mercurial\cmdutil.pyc", line 373, in <lambda>
  File "mercurial\commands.pyc", line 418, in clone
  File "mercurial\hg.pyc", line 219, in clone
  File "mercurial\hg.pyc", line 235, in _update
  File "mercurial\hg.pyc", line 240, in update
  File "mercurial\merge.pyc", line 566, in update
  File "mercurial\merge.pyc", line 426, in applyupdates
  File "mercurial\localrepo.pyc", line 487, in wwrite
  File "mercurial\util.pyc", line 1312, in symlink
  File "mercurial\util.pyc", line 1272, in __call__
  File "mercurial\util.pyc", line 682, in audit_path
  File "ntpath.pyc", line 42, in normcase
  File "mercurial\util.pyc", line 1268, in __getattr__
AttributeError: replace

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



More information about the Mercurial mailing list