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

Re: svn: Can't recode string

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-10-18 17:12:47 CEST

On Mon, 18 Oct 2004, Szabolcs Rozsnyai wrote:

> > What commands are you trying?
> > What output do they produce? Do some commands (ls, svn, ...) work, and not
> > others? What is the output of "locale charmap"?
>
> Here it comes:
>
> szabolcs@dienstag szabolcs $ locale
> LANG=POSIX
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
> szabolcs@dienstag szabolcs $ locale charmap
> ANSI_X3.4-1968
> szabolcs@dienstag szabolcs $ su
> Password:
> root@dienstag szabolcs # localedef -c -f UTF-8 -i de_DE de_DE.UTF-8
> root@dienstag szabolcs # export LANG="de_DE.UTF-8"
> root@dienstag szabolcs # locale charmap
> UTF-8

OK, this means you've set up the locale to be based on UTF-8, so
Subversion assumes that all strings (filenames, strings to be printed etc)
must be in UTF-8.

> root@dienstag szabolcs # locale
> LANG=de_DE.UTF-8
> LC_CTYPE="de_DE.UTF-8"
> LC_NUMERIC="de_DE.UTF-8"
> LC_TIME="de_DE.UTF-8"
> LC_COLLATE="de_DE.UTF-8"
> LC_MONETARY="de_DE.UTF-8"
> LC_MESSAGES="de_DE.UTF-8"
> LC_PAPER="de_DE.UTF-8"
> LC_NAME="de_DE.UTF-8"
> LC_ADDRESS="de_DE.UTF-8"
> LC_TELEPHONE="de_DE.UTF-8"
> LC_MEASUREMENT="de_DE.UTF-8"
> LC_IDENTIFICATION="de_DE.UTF-8"
> LC_ALL=
> root@dienstag szabolcs # svn import /home/szabolcs/dokumenteBCK/
> file:///mnt/BarakudaBeta/svnrepository/dokumente
>
> Log message unchanged or not specified
> a)bort, c)ontinue, e)dit
> c
> svn: Valid UTF-8 data
> (hex: 4b 75 6e 73 74 68)
> followed by invalid UTF-8 sequence
> (hex: e4 6e 64 6c)

This indicates that Subversion has found some data that is not valid
UTF-8. In this instance, the text appears to be 'Kunsth{a-umlaut}ndl', but
encoded in ISO-8859-1 rather than UTF-8.

Perhaps changing to a locale based on ISO-8859-1 will allow you to
proceed?

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 18 17:13:24 2004

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.