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

Re: Cannot accept 'svn:sync-lock' property because it is not encoded in UTF-8

From: Ryan Schmidt <subversion-2010a_at_ryandesign.com>
Date: Thu, 18 Mar 2010 05:33:21 -0500

On Mar 18, 2010, at 03:47, Dmitry Savvateev wrote:

> Yes, indeed, the host name contained cyrillics. I changed it, and the
> problem disappeared.
> I think, the host name was automatically generated by the system
> (sounded like "user-pc" in Russian). That means the problem may be
> rather common, and it makes sense to encode hostname in UTF-8 before
> using as lock text.

If your hostname is not UTF-8, how is Subversion to know what character encoding it's using? It seems to me it's a bug (of your OS) to present a non-UTF-8 string (or possibly even a non-ASCII string) as a valid hostname. (My thought is that if a non-ASCII hostname is desired, the UTF-8 representation of the hostname should be encoded in punycode [1] by the OS. But maybe that's just me.)

[1] http://en.wikipedia.org/wiki/Punycode
Received on 2010-03-18 11:34:12 CET

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