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

Re: httpd and locales

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-01-19 21:59:58 CET

On 1/19/06, Peter N. Lundblad <peter@famlundblad.se> wrote:
> On Thu, 19 Jan 2006, Garrett Rooney wrote:
>
> > On 1/19/06, André Malo <nd@perlig.de> wrote:
> >
> > > By the way, at least in the past the locale information wasn't passed to the
> > > hook scripts at all (I don't know if this was fixed already), so the hook
> > > scripts could/can not determine the encoding anyway. Passing UTF-8 encoded
> > > filenames is good and clear choice then.
> >
> > Now that is an interesting point. I'm not sure if the locale env
> > variables are passed on or not... Will have to investigate that.
> >
> It's not fixed. Philip raised this some weeks ago. Just adding the LC_*,
> LANG and LANGUAGE variables to the child process is the solution.
>
> For the original question, if you run a server, then consider using an
> UTF8 locale. Problem solved.

That doesn't solve the problem because httpd defaults to the C locale,
it never makes the necessary setlocale call to cause it to actually
pay attention to the various env vars, so the system locale is totally
ignored. This is why I started the discussion on the httpd dev list,
to see if there was a reason that was never done.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 20 01:21:40 2006

This is an archived mail posted to the Subversion Dev mailing list.