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

Re: Call For Votes: converting log messages to UTF-8

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-05-31 21:08:23 CEST

On Fri, May 31, 2002 at 01:55:33PM -0500, Karl Fogel wrote:
> Colin Putney <cputney@whistler.net> writes:
> > 1) Do as Marcus and gstein propos and decree that log messages will be
> > stored as UTF-8 in the repository and do the necessary conversion on
> > input and output as a crutch for those without Unicode capable-tools
> >
> > 2) Decree that log messages must be text, and store the metadata
> > specifiying the character set. Have the clients pass the character set
> > to the core libraries and have the libraries return the character set
> > along with the log messages at retrieval time.
>
> I like (2), but it doesn't even have to decree that they be "text".
> If we're storing another property saying what the charset is (or what
> Subversion's best guess is, anyway), then we just store the exact
> sequence of bits the user specified for the log message, along with
> metadata saying how to interpret that sequence of bits.
>
> This wins all around, because:
>
> - Clients receiving log msgs from the repository don't have to
> guess what encoding to use. The repository tells them.
>
> - The original data is still there, in case svn guessed wrong at
> input time.
>
> It means passing another parameter along with log_msg itself, but
> that's no big deal.
>
> +1 on this, for what it's worth.

+1.

as this discussion goes on, i'm becoming convinced that is the only
correct solution.

-garrett

-- 
garrett rooney                    Remember, any design flaw you're 
rooneg@electricjellyfish.net      sufficiently snide about becomes  
http://electricjellyfish.net/     a feature.       -- Dan Sugalski
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 1 14:11:12 2002

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