[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 18 Mar 2010 18:53:51 +0200 (Jerusalem Standard Time)

Ryan Schmidt wrote on Thu, 18 Mar 2010 at 05:33 -0500:
> 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.

We get the hostname from APR. Either Subversion or APR (depending on
APR's API promises) should convert it to UTF-8 (or, as you say, punycode)
before we attempt to use it as the property value.

Another option: we could use the local IP address instead of the 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 17:53:52 CET

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