Error with specific characters
Moderator: SourceGear
Error with specific characters
Hi!
When I use DiffMerge to diff to a file I get an exit code of 2 and the diff fails when the either file contains a → character. I imagine that this is an issue with other UTF8 characters as well. Is there any chance that this could be looked at?
When I use DiffMerge to diff to a file I get an exit code of 2 and the diff fails when the either file contains a → character. I imagine that this is an issue with other UTF8 characters as well. Is there any chance that this could be looked at?
Re: Error with specific characters
Does the problem only exist when the character → exists in the file?
What is the Ruleset option set to?
Can you please provide me with step by step instructions to reproduce the error?
Thanks,
Tonya
What is the Ruleset option set to?
Can you please provide me with step by step instructions to reproduce the error?
Thanks,
Tonya
Re: Error with specific characters
I've noticed this with the → and the ∠ character, but I imagine this is an issue with other UTF8 characters too.
Here are the steps I used.
Here are the steps I used.
- Make file A.txt with an → character in it.
Make file b.txt that's empty.
Run this command:sgdm will return an exit code of 2 and output.txt will be empty when it should contain a diff of the files.Code: Select all
sgdm.exe -u -d=output.txt A.txt B.txt
Re: Error with specific characters
Thank you for the details. I'm unable to reproduce the problem with the given scenario.
Can you please try diffing the files using the DiffMerge Client instead of the CLC to see if it changes anything?
Also, please check your ruleset configuration by selecting: Tools - Options - Rulesets.
Thanks,
Tonya
Can you please try diffing the files using the DiffMerge Client instead of the CLC to see if it changes anything?
Also, please check your ruleset configuration by selecting: Tools - Options - Rulesets.
Thanks,
Tonya
Re: Error with specific characters
Using the visual diff window I see â when I diff the files instead of the arrow.
Looking at the Rulesets, I see that the text one has the encoding set to Western European, and if I change that to UTF-8 the diff appears correctly in the window!
However, changing that Ruleset doesn't seem to affect diffing to a file from the command line. And unfortunately, the way that I'm using DiffMerge is as part of an automated process to generate a diff file that can be processed by something else.
Looking at the Rulesets, I see that the text one has the encoding set to Western European, and if I change that to UTF-8 the diff appears correctly in the window!
However, changing that Ruleset doesn't seem to affect diffing to a file from the command line. And unfortunately, the way that I'm using DiffMerge is as part of an automated process to generate a diff file that can be processed by something else.
Re: Error with specific characters
Hello again,
I have confirmed that changing the encodings in the DiffMerge GUI client carries over to the CLC. Is it possible you are using DiffMerge in a command prompt as a different user account?
Tonya
I have confirmed that changing the encodings in the DiffMerge GUI client carries over to the CLC. Is it possible you are using DiffMerge in a command prompt as a different user account?
Tonya
Re: Error with specific characters
Wow you're right. Looks like I had an older version, with the latest one changing the Ruleset does change how CLC runs as well. Thank you for all your help!
Do you happen to know where the Ruleset information is stored? Is it in the registry, or config file somewhere, or something else?
Do you happen to know where the Ruleset information is stored? Is it in the registry, or config file somewhere, or something else?
Re: Error with specific characters
Glad to hear the problem is resolved. The ruleset information is stored in the registry for each user.
Tonya
Tonya