Package: subversion
Severity: important
Tags: upstream, patch
Forwarded: http://subversion.tigris.org/issues/show_bug.cgi?id=2487

Hi!

I used subversion 1.4 (oldstable) until now. I had pre-commit script,
which passed a few code checks before committing. If this script
found problems in commit-code, it showed them in STDERR and exited
error.

Source code might contain non-latin symbols (so script's messages might
contain these symbols, too) and subversion 1.4 worked fine.

Today I've upgraded subversion upto testing. This hook has discontinued
to work.

I wrote a test hook to demonstrate problem (script is in UTF-8
charset):

$ cat pre-commit

#!/bin/sh

echo "Привет" >&2
exit -1


If You try to commit anything You will receive message:

=message

svn: Commit blocked by pre-commit hook (exit code 255) with output:
[Error output could not be translated from the native locale to UTF-8.]

=end-message

Must be:

=message

svn: Commit blocked by pre-commit hook (exit code 255) with output:
Привет

=end-message

It is very sad to me and to companies who use check scripts in
pre-commit hooks :(

I looked through upstream BTS and found a workarround:

http://subversion.tigris.org/issues/show_bug.cgi?id=2487

I've applied this patch and it works fine again.

So It would be nice if You watch this patch.
-- 
... mpd playing: U.D.O. - Painted Love

. ''`.                               Dmitry E. Oboukhov
: :’  :   email: un...@debian.org jabber://un...@uvw.ru
`. `~’              GPGKey: 1024D / F8E26537 2006-11-21
  `- 1B23 D4F8 8EC0 D902 0555  E438 AB8C 00CF F8E2 6537

Attachment: signature.asc
Description: Digital signature

Reply via email to