Subject: Re: bug#58192: 28.2; RCS integration issue

From: Eli Zaretskii <[email-masked]>
Date: Fri, 30 Sep 2022 13:44:36 +0300

> Date: Fri, 30 Sep 2022 10:01:51 +0200 (CEST)
> From: "Meyer, Thomas" <[email-masked]>
> 
> Dear emacs developers, we have an issue with vc-rcs, that we have been
> using for a long time, and which seems to be broken in 28.2 (actually
> first noticed this in 28.1): we are working on the Windows port
> available on http://ftp.gnu.org/gnu/emacs/windows/emacs-28/.
> 
> By tracing the activity of e.g. ci command with process monitor, we
> found that the commands fail because an erraneous line break is send
> with the command, e.g.
> 
> ----
> PID: 7224, Command line: C:\Windows\system32\cmd.exe /c c:\bin\ci.cmd -j -u1 "-mSummary: bla
> " RCS/x.txt,v
> ----
> 
> To reproduce:
> 
> find new file in new directory
> C-x v v (vc-next-action)
> Registration will work fine (Registering (c:/Users/meyert/Documents/RCS-test/a.txt)... done)
> change file
> C-x v v (vc-next-action) -> first error: a checkout is done, erasing the changes
> change file again
> C-x v v (vc-next-action) -> second error: check-in fails:
> 
>    Press C-c C-c when you are done editing.
>    Enter a change comment.  Type C-c C-c when done
>    Checking in c:/Users/meyert/Documents/RCS-test/a.txt...
>    progn: Failed (status 1): ci -j -u1 -mSummary: bla
>     RCS/a.txt,v
> 
> Do you require further details?

Where did the "bla" part come from?  Emacs didn't generate it, did it?
It's something you typed at some point, I guess?

More generally, would you please describe the steps in full detail,
including what you typed, exactly?

Also, what does ci.cmd say?  I'm not aware of any scripts in the RCS
distribution; 'ci' should be a program, i.e. ci.exe.  It could be that
what ci.cmd does has some relevance for this issue.

Thanks.