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

[Subclipse-users] UTF-16 text files not always handled properly in compare editor

From: David Balažic <david.balazic_at_hermes-softlab.com>
Date: Fri, 20 Feb 2009 15:07:31 +0100

Eclipse : 3.4.1
Subclipse: 1.4.7

Hi!

I have an UTF-16 text file in the project.

Opening and editing it in Eclipse works fine.
In the Synchronize view, I can double click the file under Outgoing
and the compare editor opens , again correct (showing that I edited
one line and added a new line).

But after commiting and doing a diff in history, it is wrong. Details:
 - in Project Explorer view right click the file, select Team/Show History
 - in the History view select two versions of the file, right click
   and select Compare...
 - in the Compare dialog leave option as they are and click OK

Result: the compare editor show the contents, but fails to detects it is UTF-16.
So it shows a square character between each real character.
Basically it treats it as a 8 bit file instead of 16 bit.

As it works fine in the Synchronize view, I guess it is just a small
bug in file format detection and hope it is easily fixed.

Regards,
David

---------------------------------------------------------------------
http://www.nosoftwarepatents.com Innovation, not litigation !

---
David Balažic                 mailto:david.balazic_at_hermes-softlab.com
HERMES Softlab                http://www.hermes-softlab.com
Zagrebska cesta 104           Phone: +386 2 450 8947 
SI-2000 Maribor
Slovenija
---------------------------------------------------------------------
"Be excellent to each other." -
Bill S. Preston, Esq. & "Ted" Theodore Logan
---------------------------------------------------------------------
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=1198568
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-02-20 15:07:53 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.