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

Re: commit-email.pl - comment output at first call

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-08-09 18:39:38 CEST

Torsten Krah wrote:

>Hello.
>
>I am using this hook script, to inform some users about repository
>changes.
>
>subversion version is 1.2.0-1 .
>
>The problem ist, when the script is called the FIRST time after commit,
>the comment part in them mail appears broken, instead of correct utf-8
>values i get something like this for german umlauts:
>
>ü - ?\195?\188
>
>But only for comment section, umlauts in the body from diff output are
>encoded correctly.
>
>If i go now and call this script on the shell with same transaction id -
>it get the same mail again, but know its correctly encoded and the
>umlaut gets
>
>ü - =C3=BC
>
>like accspected. i can call the script thousands of time from now, the
>result is 100% correct, but the first time it fails.
>
>Any tips or suggestions, why this is happening?
>
>
When the commit hook is called, it gets an empty environment. You have
to set LANG and/or LC_CTYPE in the post-commit hook itself to get the
locale translation working correctly.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 9 18:41:59 2005

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.