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

Re: svn log behaves strangely when characters cannot be represented in the local charset

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: Mon, 18 Feb 2008 13:22:06 +0100

On 2008-02-18 13:05:06 +0100, Branko Čibej wrote:
> That log message is in UTF-8, which is perfectly OK.

Yes, in the repository, the log message is in UTF-8. But this isn't
the problem.

> Subversion will convert that to you locale's encoding if it can; if
> not, it will "transliterate" (but not really; we need a real
> transliterating iconv).

No, transliterating does not work with svn (though iconv is OK):

vin:~tmp/wc> svn log
------------------------------------------------------------------------
r2 | vlefevre | 2008-02-18 12:27:53 +0100 (Mon, 18 Feb 2008) | 2 lines

Test caract?\195?\168re non ISO-8859-1: ?\226?\134?\146

------------------------------------------------------------------------
r1 | vlefevre | 2008-02-13 14:52:30 +0100 (Wed, 13 Feb 2008) | 2 lines

Added aé.

------------------------------------------------------------------------

vin:~tmp/wc> LC_ALL=en_US.UTF-8 svn log | iconv -f utf-8 -t iso-8859-1//TRANSLIT
------------------------------------------------------------------------
r2 | vlefevre | 2008-02-18 12:27:53 +0100 (Mon, 18 Feb 2008) | 2 lines

Test caractère non ISO-8859-1: ->

------------------------------------------------------------------------
r1 | vlefevre | 2008-02-13 14:52:30 +0100 (Wed, 13 Feb 2008) | 2 lines

Added aé.

------------------------------------------------------------------------

See the difference?

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-02-18 13:44:25 CET

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

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