views:

1314

answers:

2

I'm using VSS 2008 and Visual Studio 2008. When my source files are checked in, the VSS property dialog shows them as type "Unicode (UTF-8)". But if I check one out from within Visual Studio, then do a compare, it says "binary files differ". Is anyone else seeing this? Do I have a screwed up setting somewhere?

Thanks, Andy

Update: Thanks to VonC for some insight. In most cases, turning off the "Auto-detect encoding of local file" checkbox fixes it, although for at least one file, it didn't help. Also I haven't been able to find a way to do multiple files -- they have to each be changed, one at a time. I'm still on the lookout for a more comprehensive solution.

+4  A: 
VonC
+2  A: 

Rather than use the built in compare tool for VSS, you can also specify other applications. That may help you avoid the binary issue. As an example, if you happen to use Beyond Compare (sadly, not freeware, but it's one I have directions for):

  1. Go to Tools menu
  2. Go to Options menu item
  3. Go to Custom Editors tab
  4. Change operation to "File Difference" selection
  5. Change file extension to: .*
  6. Change command line to (including quotes): "C:\Program Files\Beyond Compare 2\bc2.exe" %1 %2
  7. Click Add button
  8. Click OK button

I'm guessing you can swap out the command line values above with another program, but haven't tried it myself.

pdwetz
awesome! thx for the post!
M Murphy