[thg-dev] file / diff: xml file false positive for binary

Sune Foldager cryo at cyanite.org
Wed May 11 07:06:16 CDT 2011


On 2011-05-11 13:38, Dominik Psenner wrote:
>> -----Original Message-----
>> From: thg-dev at googlegroups.com [mailto:thg-dev at googlegroups.com] On Behalf
>> Of Steve Borho
>> Sent: Tuesday, May 10, 2011 4:50 PM
>> To: thg-dev at googlegroups.com
>> Subject: Re: [thg-dev] file / diff: xml file false positive for binary
>>
>> On Tue, May 10, 2011 at 2:48 AM, Dominik Psenner <dpsenner at gmail.com>
>> wrote:
>> > Hi,
>> >
>> > I stumpled upon a possible regression for the workbench revision details
>> > tab. Some XML files are recognized as binary and therefore the diff is
>> not
>> > shown in workbench, but instead the message "File or diffs not
>> displayed:
>> > File is binary.". OTOH kdiff detects it perfectly fine and shows the
>> diff.
>> > The file encoding is UTF-16LE and the line end style is DOS.
>>
>> This is not a regression.  Mercurial has always considered UTF16 files
>> as binary.
>
>Good to know. :-) I'm taking this follow-up question to mercurial-devel.
>
>Is there an extension around that adds the functionality of handling files
>with unicode encoding?

Not as far as I know, but might I suggest converting those files to XML's
native format, which is UTF-8, instead? :).

/Sune


More information about the Mercurial-devel mailing list