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

Trouble with pre-commit script and UTF-8

From: Igor Robul <igorr74_at_gmail.com>
Date: Fri, 4 Jul 2008 15:11:00 +0400

Hello!

I have trouble with pre-commit hook script:
svn: Can't convert string from native encoding to 'UTF-8'

So I have wrote VERY simple pre-commit script to test this. Here is test
script:
------------
#!/bin/sh
export LANG=ru_RU.UTF-8
date >/dev/stderr
exit 1
------------
As you can see it must be always fail and give me error with current date
text in Russian :-) But it gives me
svn: Can't convert string from native encoding to 'UTF-8'

If I replace
date >/dev/stderr
with
date | hd >/dev/stderr

Then script works as expected end give me hexdump of UTF-8 encoded text.

How can I (if I can) give error messages in pre-commit script in native
language?
post-commit script which mails me list of commited files works like expected
even with files with cyrillic file names.
Received on 2008-07-04 17:43:06 CEST

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.