[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: BUG: TortoiseMerge automatically converts ANSI file to UTF8 w/o BOM

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Thu, 11 Sep 2008 20:46:44 +0100

2008/9/11 Stefan Küng <tortoisesvn_at_gmail.com>:
> debose wrote:
>> On Sep 9, 9:27 pm, Stefan Küng <tortoise..._at_gmail.com> wrote:
>>> Sure, it you have utf8 encoded text, then the file is utf8 encoded.
>> Seems like that build, incorrectly detects UTF8 w/o BOM. F.e. every
>> file that contains ONLY ASCII(plain English, without locale-dependent
>> symbols) is treated in TortoiseMerge as UTF8 CRLF, while in fact it is
>> ANSI.
>> And after editing in TortoiseMerge, it will become UTF8, which is not
>> acceptable for me. =(
> I added a registry key to set the default:
> HKCU\Software\TortoiseMerge\UseUTF8
> (DWORD value)
> if set to 1, then TortoiseMerge will default to utf8 when loading files
> which only have chars < 127 in it.

The code looks different from this description. It appears that it
will use UTF8 in the following conditions:
a) if there is already a UTF8 BOM, or
b) if there are non-ascii chars AND the UseUTF8 key is non-zero.

The UseUTF8 key defaults to 0, so by default there is no conversion.

Is that correct?


: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-09-11 21:47:00 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.