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

Re: Problems with post-commit hook updating working copy

From: Alejandro Fernandez <alejandro.fdez_at_gmail.com>
Date: 2007-01-23 12:55:37 CET

2007/1/22, Ryan Schmidt <subversion-2007a@ryandesign.com>:
>
> When replying, please don't top-post, and please trim your quoting a
> little. My answers are below.

Sorry, I'm a beginner posting to a mailing list, actually I don't know the
meaning of "top-post". What I do is "reply all" the mail I just received
without modifying the subject (a copy is sent to users@subversion.tigris.org).
What do I do wrong?. Thanks.

Response is bellow.

On Jan 22, 2007, at 04:41, Alejandro Fernandez wrote:
>
> > On 1/22/2007 Alejandro Fernandez wrote:
> >
> >> On 2007/1/19, Ryan Schmidt wrote:
> >>
> >>> Environment variables are different when the hook is called by
> >>> Subversion. In particular, the environment should be very close to
> >>> empty, and this may be a problem for some reason. See what kind of
> >>> error is occurring by writing stderr to a log, then reading the log:
> >>>
> >>> $ echo update-dev.sh
> >>> #!/bin/sh
> >>> /usr/bin/svn update /var/www/html --non-interactive --username u --
> >>> password p 2>/tmp/update-dev.log
> >>
> >> I have tried the shell script you sent me and maybe we can be
> >> closer to understand my problem. I have tested with the same
> >> project, and althought it has been uploaded completely to the svn
> >> server, the working copy in the web-server public folder has the
> >> same lacks of certains directories and/or files.
> >>
> >> The update-dev.log has the following message:
> >>
> >> svn: Can't recode string
> >>
> >>
> >> I have googled the message, and it seems to be problem of the
> >> codification of the files, doesn't it?
> >>
> >> I don't know how to solve this problem so any help will be useful.
> >
> > If this is useful I complete the information with the output for
> > the "locale" command on my system (my region is Spain):
> >
> > -----------------
> > LANG=es_ES.UTF-8
> > LC_CTYPE="es_ES.UTF-8"
> > LC_NUMERIC="es_ES.UTF-8"
> > LC_TIME="es_ES.UTF-8"
> > LC_COLLATE="es_ES.UTF-8"
> > LC_MONETARY="es_ES.UTF-8"
> > LC_MESSAGES="es_ES.UTF-8"
> > LC_PAPER="es_ES.UTF-8"
> > LC_NAME="es_ES.UTF-8"
> > LC_ADDRESS="es_ES.UTF-8"
> > LC_TELEPHONE="es_ES.UTF-8"
> > LC_MEASUREMENT="es_ES.UTF-8"
> > LC_IDENTIFICATION="es_ES.UTF-8"
> > LC_ALL=
> > --------------------
> > I have read the problem could be the codification of some files
> > (quote from svn book):
> >
> > svn: Can't recode string.
> > The message is cryptic, but generally occurs when the Subversion
> > client has received a UTF-8 string from the repository, but the
> > characters can't be converted to the current locale.
> >
> > By the way I don't know how to check the codification of these
> > files, neither change this codification.
>
> As I understand it, "can't recode string" does not relate to the
> content of any file in your repository. It just relates to your
> locale settings.
>
> You have showed me the locale settings when running in your shell.
> But as I said, environment variables are different (usually absent)
> in your hook scripts. You will need to set the locale inside the hook
> script, for example by running "export LANG=es_ES.UTF-8" as the first
> line in your hook script.
>
>
> I didn't know the language was an enviroment variable, sorry for my weak
knowledege of unix systems.

Anyway I have added the "export LANG=es_ES.iso88591" command to my script
and now it works fine.

By the way, I'd like to "make a pipeline" to join the ouput of the hook
script with the svn client console. Is this possible? May I open a new post?

Thank you very much.

-- 
Saludos,
Alejandro F.
Received on Tue Jan 23 12:56:19 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.