Actions:
|
2023-02-15 08:42 AEST by Arthur Barrett - an 'ascii' file containing unicode characters doesn't correctly diff
take this c# source code:
Replace('–', '-');
Now that would be better expressed as:
Replace('\u2013', '-');
but the "cvs diff -c" incorrectly (?) shows:
***************
*** 3422,3427 ****
--- 3422,3428 ----
{
i++;
c1.sqlitenow = args[i];
+ c1.sqlitenow = c1.sqlitenow.Replace('', '-');
c1.nowset = true;
}
}
Now this would probably work if the file was marked as unicode in cvs (-ku)
===================================================================
File: Class1.cs Status: Locally Modified
Working revision: 1.135
Repository revision: 1.135 /scotty/userdlls/nscustomers/Class1.cs,v
Expansion option: kv
Commit Identifier: 5a5d63e72f6e5c38
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
Merge From: (none)
But this issue, is a request that if the character is non-displayable that something should show that... |