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

Re: svn commit: r11358 - in trunk/subversion: include libsvn_subr

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-10-13 18:38:48 CEST

Tobias Ringström <tobias@ringstrom.mine.nu> writes:

> philip@tigris.org wrote:
>
>>Author: philip
>>Date: Wed Oct 13 10:47:44 2004
>>New Revision: 11358
>>
>>
> [...]
>
>>@@ -148,6 +150,8 @@
>> *
>> * Set @a dest to the path that the symlink at @a path references.
>> * Allocate the string from @a pool.
>>+ *
>>+ * Note: @a dest is not in UTF-8, it is in the native encoding.
>> */
>> svn_error_t *svn_io_read_link (svn_string_t **dest,
>> const char *path,
>>
>>
> It looks like the path argument is also non-UTF-8,

Huh? This rev makes svn_io_read_link treat path as UTF-8.

> but every other
> svn_io_ function takes UTF-8 path names. Why didn't you change these
> two functions to take and return UTF-8 paths too instead of changing
> the callers? Surely it has to be a mistake that they take and return
> non-UTF-8 paths?

My first patch did exactly that and I was going to bring the question
up, so this mail will do.

The problem with making the symlink destination UTF-8 is that it
changes the representation of the symlink in the text-base, which in
turn changes the representation in the repository. So there are
backward compatibilty issues for repositories and working copies that
already include symlinks. I don't know what will break.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 13 18:56:39 2004

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.