May 232006
 

以前「Cannot access /cvs^M/CVSROOT on Meadow」ということを書きました。
こちらリポジトリ上の改行コードがCRLFで、チェックアウト先がLFを主処理体系(UNIXモードのCygwinなどですが他は知りません)の場合に発生するようです。

$ cvs status
/CVSROOTccess /cvs/repository
No such file or directory

ちょっと見た目違いますが、途中の^M(CR)で行頭にカーソル位置が戻っているだけなので同じ状態です。
こちら、Cygwinのメーリングリストにもあるようにtextmodeでマウントすることで解決できるようです。
cvs failing due to something adding ^m to my CVSROOT – fixed

binmodeからtextmodeに変えると他に弊害が出るという話も見かけますが、とりあえずやってみることに。

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\\>mount
C:\\cygwin\\bin on /usr/bin type system (binmode)
C:\\cygwin\\lib on /usr/lib type system (binmode)
C:\\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
C:\\>umount /usr/bin
C:\\>umount /usr/lib
C:\\>umount /
C:\\>mount -t c:\\cygwin /
C:\\>mount -t c:\\cygwin\\lib /usr/lib
C:\\>mount -t c:\\cygwin\\bin /usr/bin
C:\\>mount
c:\\cygwin\\bin on /usr/bin type system (textmode)
c:\\cygwin\\lib on /usr/lib type system (textmode)
c:\\cygwin on / type system (textmode)
c: on /cygdrive/c type system (binmode,noumount)

さて、吉とでるか凶とでるか 😐

ちなみに多分同じ結果になると思うのですが、Cygwinセットアップ時にDOSモードを選択しなさい、という情報もあります。
Re: problem with ^M

 Posted by at 11:00 am  Tagged with:

Sorry, the comment form is closed at this time.