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

RE: "Can't recode string" again...

From: Gunter Ohrner <G.Ohrner_at_post.rwth-aachen.de>
Date: 2006-01-08 11:34:39 CET

Paul Koning wrote:
> ... with one exception, of course: if you run any client type apps at
> the server (in hook scripts) then those naturally would depend on some
> locale. That's actually somewhat ugly. Ideally the hook script would
> inherit the locale setting of the client whose request triggers the
> hook. Enhancement?

Mh, setting a locale requires more than just setting environment variables
to arbitrary strings. It'd be quite difficult to anticipate what locales
the server would need to support, and even the hook script's encoding
itself would probably be misinterpreted if the server toggles between
incompatible locales depending on its current peer for executing the
scripts.

I don't know about hook scripts at all as I've never used this feature so
far, so the following is just speculation. However, "instinctively" I'd
guess some generic locale like an UTF8 based one itself would be a sane
(server-admin-chosen) choice for the script's environment, with the server
ensuring its actually UTF8 before going to the wire and the client doing
all neccessary recodings to it local encoding.

Greetings,

  Gunter

-- 
Gravity is a habit that is hard to shake off.
        -- (Terry Pratchett, Small Gods)
*** PGP-Verschlüsselung bei eMails erwünscht :-) *** PGP: 0x1128F25F ***
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 8 11:36:08 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.