diffmerge command line execution is failing
Moderator: SourceGear
diffmerge command line execution is failing
Greetings.
I am running this command on my DOS prompt:
diffmerge /d=c:\temp\diff\907-trans-vs-vali.txt c:\temp\diff\trans\file.txt c:\temp\diff\vali\file.txt
and the file c:\temp\diff\907-trans-vs-vali.txt gets created, but there is no data in it. When I run this same project using the GUI interface, it gives me what I want. Is there an option or something that I am missing on the command line?
thanks,
josé
I am running this command on my DOS prompt:
diffmerge /d=c:\temp\diff\907-trans-vs-vali.txt c:\temp\diff\trans\file.txt c:\temp\diff\vali\file.txt
and the file c:\temp\diff\907-trans-vs-vali.txt gets created, but there is no data in it. When I run this same project using the GUI interface, it gives me what I want. Is there an option or something that I am missing on the command line?
thanks,
josé
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
The diff file will contain on the differences.
No, there aren't any other options or things to tweak.
The diff file will only contain the differences between
the 2 input files. it will not contain the complete contents
of the input files. the output should resemble gnu diff
output.
and it is only written when there are differences (and
the program exits with non-zero status).
are there differences shown in the file when you use
the gui?
it is possible that there may be a character encoding
issue when the results are written out. what is the
character encoding of the input files?
j
The diff file will only contain the differences between
the 2 input files. it will not contain the complete contents
of the input files. the output should resemble gnu diff
output.
and it is only written when there are differences (and
the program exits with non-zero status).
are there differences shown in the file when you use
the gui?
it is possible that there may be a character encoding
issue when the results are written out. what is the
character encoding of the input files?
j
Re: The diff file will contain on the differences.
Hmm... ok.jeffhostetler wrote:No, there aren't any other options or things to tweak.
The diff file will only contain the differences between
the 2 input files. it will not contain the complete contents
of the input files. the output should resemble gnu diff
output.
This is also ok, so it should write something to the file.jeffhostetler wrote:and it is only written when there are differences (and
the program exits with non-zero status).
Yes. The problem is that the lines are very long and since the display does not wrap, I can not see the parts where it is displaying the changes.jeffhostetler wrote:are there differences shown in the file when you use
the gui?
Unicode. I did run a gnu diff on it and I got the differences from there, but not from DiffMerge.jeffhostetler wrote:it is possible that there may be a character encoding
issue when the results are written out. what is the
character encoding of the input files?
thanks.
josé
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
There a bug.
i just did what you described on unicode files and
got the same problem. there's a problem converting
the diff results (from unicode) into the gnu diff format.
sorry for the inconvenience,
j
got the same problem. there's a problem converting
the diff results (from unicode) into the gnu diff format.
sorry for the inconvenience,
j
Re: There a bug.
Ok, at least I know it is not just me. .-) If you do a diff -al file1 file2 > file3, you will get some output, but it will all be with an extra space on it. Those lovely \000 values that Windows think that each character has. So, what I do is that I go and clean that file by deleting all \000 values in the text file and I get a good output.jeffhostetler wrote:i just did what you described on unicode files and
got the same problem. there's a problem converting
the diff results (from unicode) into the gnu diff format.
sorry for the inconvenience,
j
just a thought...
josé
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
a suggestion
if you have cygwin installed, you might run both of the input
files through iconv and convert unicode to utf8 or the code page for
your current locale. then run those files through DiffMerge or gnu
diff.
hope this helps,
j
files through iconv and convert unicode to utf8 or the code page for
your current locale. then run those files through DiffMerge or gnu
diff.
hope this helps,
j
Re: a suggestion
Yes, I have cygwin installed and I did not know about iconv. I just wrote a D program to convert from unicode to UTF8. Son-o-vah!jeffhostetler wrote:if you have cygwin installed, you might run both of the input
files through iconv and convert unicode to utf8 or the code page for
your current locale. then run those files through DiffMerge or gnu
diff.
hope this helps,
j
Thanks.