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

Re: Encoding of repository hook parameters

From: Peter Samuelson <peter_at_p12n.org>
Date: 2005-12-15 01:29:34 CET

[Philip Martin]
> I think we could have designed Subversion such that external paths,
> like the repository path, were just opaque strings of bytes that get
> passed around without modification--then the encoding would be
> irrelevant.

Finally I understand, and your original question seems to be completely
moot. When you pass a path into a hook script, it has *no way* of
knowing what the path's real encoding is (there *is* a canonical
encoding of the path, but it isn't UTF-8, it's whatever is actually on
the filesystem), so it *has* to assume that the path is already in the
correct encoding. Even if the hook script were given LC_CTYPE, there's
nothing it could do with that information anyway.

Put another way, whatever transformation the subversion server does for
readdir() or open(), it will do the same for popen("hook-script"), so
the hook script may as well assume the path is indeed an opaque bag of
bytes.

Received on Thu Dec 15 01:48:15 2005

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.