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

conversion problem with apache + mod_dav_svn

From: Ludek Finstrle <ludek.finstrle_at_pzkagis.cz>
Date: 2007-11-01 19:23:40 CET


  I had problem with apache+mod_dav_svn+tortoisesvn (I think with svn too).
When I tried commit I get:
Can't convert string from native encoding to 'UTF-8': [409, #22]
Prazdn?\\195?\\189 log message.\n [409, #22]

I switched from svnserver (there is no such problem) to apache+mod_dav_svn.
I took a look at the problem and I find that svnserver call setlocale
from subversion/libsvn_subr/cmdline.c. But the apache and mod_dav_svn don't
do it so it always try convert the message from ASCII to UTF-8 (no matter
about locale).

I'm not sure if it is apache or mod_dav_svn related problem.
Now I fix it by adding these lines to subversion/mod_dav_svn/mod_dav_svn.c:
#include <locale.h>

Second line I add to the function: static int dav_svn_init.

Now commit works like a charm (it returns the error message).

Could someone comment it or patch it?


P.S. please reply with cc: to me as I'm not member of this list.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 4 00:37:04 2007

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.