Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#447 Diff UTF8 file

WinCvs
open
WinCvs (366)
4
2006-10-31
2006-10-12
Alberto
No

Hi,

i'm using WinCVS 2.0.3 (but it applies also to 2.0.2.4)
and CVSNT client 2.5.0.3.2151.

Doing a Diff of a local version against a remote
version (same revision), wincvs issue the update
command with -p flag in order to retrieve the file
piping it in memory and writing it into the user's temp
directory:

cvs -w update -p -r revision -- file

Unfortunately if the file is in UTF8 format both on the
server and on the client machine, retrieving with the
-p flag makes it translate the piped output to CP1252
(on my machine). To the user this means that it will
get diffs for different characters due to the different
codepages on the local and the temp file, giving the
bad perception that the file on the server is different.

The above command infact returns the following warnings
from the cvsnt client:

cvs update: Translation from server codepage 'UTF-8' to
client codepage 'CP1252' lost characters
cvs update: Translation from server codepage 'UTF-8' to
client codepage 'CP1252' lost characters

This problem was known by CVSNT developers that from
build 2151 had implemented a --utf8 flag to be added to
the cvs command in order to get a UTF8 output: i've
tested it and it works flawlessly.

Could you please add the opportunity in the Diff
Settings to control this flag?

Regards

Alberto

Discussion

    • labels: 379714 --> WinCvs
    • milestone: --> WinCvs
    • priority: 5 --> 4