You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stepan Kalichkin <st...@tdisie.nsc.ru> on 2004/06/28 09:32:36 UTC

SVN log charset

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sometimes I use no latin (koi8-r) charset for my log messages. 
For mail notification I use post-commit hook and commit-email.pl script.
But it dosn't send true charset. I see the mail like this:

- ---
Author: step
Date: 2004-06-28 12:42:10 +0700 (Mon, 28 Jun 2004)
New Revision: 40

Modified:
   msp/ADSPIFAC.C
Log:
?\208?\191?\209?\128?\208?\190?\208?\178?\208?\181?\209?\128?\208?\190?\209?
\135?\208?\186?\208?\176

....
- ---

But strange stuff if I do it directly:
step@step:~> /usr/share/subversion/tools/hook-scripts/commit-email.pl /home/svnroot/ 
40 mymail@domain.com

I get a good mail with truth koi8-r log message.
Does anybody know is it a bug?
-----BEGIN PGP SIGNATURE-----

iD8DBQFA3+W18hI96vlF15gRAhbXAJ0Zh+tAivBKumxf2eP209Jb3R1WjACdGRp8
Z6kYV7OToGeZybcbmu0+C5c=
=pvlL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: SVN log charset

Posted by Stepan Kalichkin <st...@tdisie.nsc.ru>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

В сообщении от Monday 28 June 2004 16:45 Dimitri Papadopoulos-Orfanos 
написал(a):
> Hi,
>
> > Sometimes I use no latin (koi8-r) charset for my log messages.
> > For mail notification I use post-commit hook and commit-email.pl script.
> > But it dosn't send true charset. I see the mail like this:
> > [...]
> > But strange stuff if I do it directly:
> > [...]
> > I get a good mail with truth koi8-r log message.
> > Does anybody know is it a bug?
>
> Maybe your interactive shell defines environment variables LANG or
> LC_TYPE, while they're not defined when running commit-email.pl as a
> post-commit hook. The commit-email script can't guess the charset by
> itself.
>
> One way to define the charset could be setting LANG. There may other
> ways, I really don't know.
>
> Dimitri
Thank you that's idea. LANG and LC_TYPE realy not defined when post-commit 
hook is runing. I've add export LANG=ru_RU.KOI8-R in my post-commit and log 
in mail ok now.
-----BEGIN PGP SIGNATURE-----

iD8DBQFA3+xQ8hI96vlF15gRAlQvAJ9nrMqPySw6rXAvYIf4l+U/d3H79QCgh4yp
ucHmveGbWyRMPEMBbL+a0W0=
=Fl/S
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: SVN log charset

Posted by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr>.
Hi,

> Sometimes I use no latin (koi8-r) charset for my log messages. 
> For mail notification I use post-commit hook and commit-email.pl script.
> But it dosn't send true charset. I see the mail like this:
> [...]
> But strange stuff if I do it directly:
> [...]
> I get a good mail with truth koi8-r log message.
> Does anybody know is it a bug?

Maybe your interactive shell defines environment variables LANG or 
LC_TYPE, while they're not defined when running commit-email.pl as a 
post-commit hook. The commit-email script can't guess the charset by itself.

One way to define the charset could be setting LANG. There may other 
ways, I really don't know.

Dimitri

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org