httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko Čibej <>
Subject Re: httpd and locales
Date Thu, 19 Jan 2006 18:48:56 GMT
André Malo wrote:
> * Garrett Rooney <> wrote:
>>> It doesn't belong here, but... I'm wondering why the path isn't passed as
>>> UTF-8. Why is it translated to the locale at all? It's all happening within
>>> the svn file system, so I'd really expect to get utf-8 and would consider
>>> locale translation as a bug.
>> Well, I imagine that the assumption is that any hook script is going
>> to be using the actual locale specified in LANG/LC_ALL/etc env
>> variables, so if we don't translate to that locale it'll get rather
>> confused by utf8 data in its command line.  As a general rule svn
>> translates from native -> utf8 on input and from utf8 -> native for
>> output.  Ironically, if the LANG/LC_ALL/etc env vars were being
>> followed by httpd this translation would be a noop, since the system
>> uses a utf8 locale...
> So whether the users of a repository (httpd or svnserve) may use the full
> unicode range for their files depends on the locale of the server? That feels
> just wrong ;-) I don't see how there are command line confusings...
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.

-- Brane

View raw message