On Thu, Jan 19, 2006 at 11:09:13AM -0800, Garrett Rooney wrote:
> On 1/19/06, André Malo <[EMAIL PROTECTED]> wrote:
> > * Branko Čibej wrote:
> >
> > > You're confusing the content of the SVN repository and hook scripts
> > > stored on the local filesystem. Paths in the first are always encoded in
> > > UTF-8. The latter naturally have to obey the server's locale.
> >
> > I don't think so. The task was to pass the name of a file stored in the
> > repository to a hook script via the command line. Otherwise I must have
> > misunderstood something quite heavily.
> 
> That is correct, it's an argument to the hook script that happens to
> contain the path of a file in the repository.  Currently all arguments
> are transcoded from utf8 to native before we execute the hook script.

I really don't think that relying on that working properly is a good 
idea.  All it takes is for one rogue PHP script to set the locale to 
some odd locale to be able to print currency symbols properly or 
whatever, and the hook scripts would start behaving really strangely.

As a module author, presuming the locale is undefined is the safest bet, 
and as an adminstrator, starting the server in the C locale is the 
safest bet.

joe

Reply via email to