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

Re: post-commit hook script to update a live website

From: Dongsheng Song <dongsheng.song_at_gmail.com>
Date: 2006-12-04 07:14:14 CET

This is because your file name not ascii encoding, see you console
locale like this

$ locale
LANG=
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8

Then at the script beginning, set LC_ALL with the correct value at
the script begin

Eclipse settings, the native encoding, not the file name encoding.
And because the hook no LC env value, it may be system default, not as
you expected.

2006/12/4, Thanos <thanos.a@fastwebnet.it>:
> Thanks for the hint. This is what I have found in log file:
>
> /var/www/svn
> drwxrwxr-x 12 apache apache 4096 Dec 3 10:58 .
> uid=48(apache) gid=48(apache) groups=48(apache),502(svn)
> svn: Can't convert string from native encoding to 'UTF-8':
> svn: forl?\195?\172.htm
>
> According to my Eclipse settings, native encoding is set to ISO-8859-1
> What should I do to fix this issue ? And why does it happen only when
> the hook is executed by svn ?
>
> Thanks,
> A.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 4 07:14:47 2006

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