On Sep 7, 2009, at 16:39, Daniel Shahaf wrote:
> Ryan Schmidt wrote on Mon, 7 Sep 2009 at 15:26 -0500:
>> On Sep 7, 2009, at 09:49, Marc Lustig wrote:
>>> We have the requirement to ensure that log-messages as well as file-
>>> names and the contents of character-based files are properly
>>> encoded, i .e. in UTF-8. Anybody knows a script to do this job?
>>
>> For filenames and log message, Subversion should be checking this
>> already. It should not be possible for non-UTF-8 filenames or log
>> messages to end up in the repository. Though I think there may be
>> some
>> cases where it can happen, for example when loading a dumpfile via
>> svnadmin load? There seem to be more lax checks in place there than
>> with the "svn commit" or "svn import" mechanisms.
>
> Filenames are validated in libsvn_fs (fs-loader.c:path_valid()), log
> messages in libsvn_repos (fs-wrap.c:validate_prop()). Only the former
> set of checks applies during 'svnadmin load', but both sets apply
> during
> commits and svnsync's.
So... it would be possible to "svnadmin load" something with non-UTF-8
log messages, and then you wouldn't be able to "svnsync" that
repository? Are there plans to fix this?
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2392165
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-07 23:44:41 CEST