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

Re: The Data Sanitization Plan

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-06-25 22:53:58 CEST

Ben Collins-Sussman wrote:

> 3. all log messages passed to libsvn_* are assumed to be
>
> - in UTF-8
>
I think we have to agree on a line ending convention for the log
messages, too. If we're going to convert them, we might as well go all
the way.

BTW, the log message file templates for the $EDITOR functionality should
be created with native line endings; otherwise, Windows users, for
example, won't be able to use notepad as their editor.

>Our thoughts are to create three utility routines in libsvn_subr,
>something like:
>
> svn_sanitize_path()
> svn_sanitize_url()
>
Don't forget that the command line client needs conversions in _both_
directions.

> svn_sanitize_logmsg()
>
Given the above, we _do_ need this last function, because log message
sanitization won't be just a charset conversion. Sorry, Greg. :-)

> * We can easily write a routine to convert '\' into '/'
>
I think apr_filepath_merge already does that, if you don't set the
APR_FILEPATH_NATIVE flag. And vice versa, for output conversions.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 25 22:54:33 2002

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.