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

Re: svn update encoding issue

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-21 23:35:34 CET

On Mar 21, 2006, at 21:32, ZB wrote:

> I'm having a strange issue using svn update. I keep a sandbox of a
> repository
> on one of our server (CentOS 4.2; just a straight 'svn checkout' of
> the
> repository). To keep this updated, I've written a script that runs
> via cron
> (root's crontab, not the cron user). Whenever the script is run
> (via cron or
> manually), I get the following output:
>
> svn: Can't convert string from native encoding to 'UTF-8':
> svn: If You?\226?\128?\153re Harassed

[snip]

> What could be causing the encoding error? And why would I be seeing
> it only
> when cron runs the script, but not when I run the script manually?

Oh how I wish some bright programmer would once and for all determine
why this error keeps happening to so many people and how to fix it so
that it never happens again.

Presumably this has something to do with your $LANG environment
variable, and presumably it is different in the cron environment than
in your normal shell environment. Try setting it in your cron
environment to the same thing you have it set to in your shell
environment.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 21 23:37:48 2006

This is an archived mail posted to the Subversion Users mailing list.