Re: Encoding of repository hook parameters
On Wed, 2005-12-14 at 16:34 +0000, Philip Martin wrote:
> Peter Samuelson <email@example.com> writes:
> > [Philip Martin]
> >> The first argument to all the repository hooks is the path to the
> >> repository and the value has been converted from UTF-8 to the native
> >> encoding of the process that invoked the hook.
> > Wait, why are you treating a filename on the host system as anything
> > other than an opaque string of bytes?
> That's the way Subversion has always worked. Inside the libraries
> paths are UTF-8 and they get converted to/from the native encoding
> when communicating with the 'outside world'.
This is all true, yet largely irrelevant to Philip's initial question.
Regardless of the transformations a path has gone through between the
opening of a repository for commit purposes and the running of the
commit-related hook scripts, those scripts might need to know (for
whatever reason) what encoding the repository path as provided to them
is, and the environment given them (which is where such hints typically
live) lacks this information.
C. Michael Pilato <firstname.lastname@example.org>
CollabNet <> www.collab.net <> Distributed Development On Demand
Received on Wed Dec 14 18:11:34 2005
This is an archived mail posted to the Subversion Dev