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

pre-lock hook script with umlauts in filename

From: Krupka, Jan <krupka_at_depag.de>
Date: Tue, 01 Apr 2008 15:00:36 +0200

Hi list,

i have to start a pre-lock hook with a filename, that contains umlauts
(german äöü).

On the clientside follwing error occur:

jk_at_alderaan:~/subversion/svn_test/test$ svn lock ätsch.txt
svn: Failed to start '/repository/svn/admin/svn_test/hooks/pre-lock' hook

In the apache error log are following lines

[Tue Apr 01 14:17:50 2008] [error] [client 10.1.10.21] Failed to create new lock. [500, #165001]
[Tue Apr 01 14:17:50 2008] [error] [client 10.1.10.21] Failed to start '/repository/svn/admin/svn_test/hooks/pre-lock' hook [500, #165001]
[Tue Apr 01 14:17:50 2008] [error] [client 10.1.10.21] Can't convert string from 'UTF-8' to native encoding: [500, #22]
[Tue Apr 01 14:17:50 2008] [error] [client 10.1.10.21] /work/test/?\\195?\\164tsch.txt [500, #22]

It look like that subversion on the server is not able to convert parameter path for
pre-lock hook into a serverside locale.

I tested many settings of LC_ALL for the starting environment of the apache server.
I tried to set LC_ALL per SetEnv in httpd.conf.

The result will be the same all the time.

Yes, i know, subversion will start the hook scripts with empty environment, but
where have i to configure the locale, that subversion used to convert the parameter
path for the pre-lock hook call?

I checked the locale settings inside the hook. They will be all the time

LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

It looks like a standard. Where can i change this without access to the environment of this script?

I use apache 2.0.59 with subversion 1.4.3 self compiled

Many thanks for your hints

/jk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-01 14:59:50 CEST

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