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

Re: svn:keywords - unicode file problem

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-10-30 15:34:34 CET

On Tuesday 30 October 2007, Emre Uslu wrote:
> One of our tools generates many files in unicode charset.

Just for the record, Unicode is not a charset. There are different
representations of Unicode, e.g. UTF-8/UTF-16/UTF-32.

> Setting svn:keywords property for these files is not working. But,
> converting these files as UTF-8 works.

I guess that you are using UTF-16 or UTF-32 as format. Subversion doesn't
treat these as textfiles (yet). UTF-8 is a different case, because it can
mostly be handled by programs that are ASCII-capable and which ignore the 8th
bit. IOW Subversion simply treats the ASCII parts of the file (including the
keywords) as ASCII and ignores all the rest.

> Is there any solutions other than converting all the files as UTF-8?

Not yet, I'm afraid, as Subversion doesn't treat UTF-16 or UTF-32 as text yet.
Just for the record: UTF-8 is the most common Unicode representation and
capable of the full Unicode range, so you're not losing any information and
potentially even saving some space.

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 30 15:38:17 2007

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

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