When you add a file to Perforce, it tries to determine what type of file it is (text, binary, utf16, etc.). He does a good job of this, but apparently never checks the file type again after the initial submission to version control. Recently, a colleague made changes to a text file that converted it to Unicode (utf16). Perforce did not recognize this and still considered it a text type, so when others extracted the file, it was corrupted.
We fixed the problem by re-adding the file and explicitly changing the file type to utf16, but would prefer this to happen automatically. There are ways to make him always use a certain type of encoding, but I don’t know if I like this idea. Has anyone dealt with and found a solution to this problem?
raven source
share