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

Re: svn commit: r1612989 - /subversion/branches/svn-auth-x509/subversion/libsvn_subr/win32_xlate.c

From: Branko Čibej <brane_at_wandisco.com>
Date: Thu, 24 Jul 2014 10:48:00 +0200

On 24.07.2014 08:42, Ben Reser wrote:
> On 7/23/14 10:32 PM, Branko Čibej wrote:
>> Just FYI: Converting from UTF-32 is trivial, utf8proc does that all the time,
>> so you should be able to cook up something. And we already have code somewhere
>> for converting from UTF-16LE.
> I just expected that the svn_utf/xlate stuff would work. I'm still surprised
> that even after I looked up the code point identifiers for Windows it still
> isn't working.

It really depends on the version of Windows, I'm afraid ... Was it WinXP
that finally added these codepages?

> I hadn't actually considered just using utf8proc.
> The UTF-16LE code is svn_utf__win32_utf16_to_utf8(), which isn't exactly
> applicable since it's expecting wide characters.

"Expecting wide characters" in what sense? UTF-16 aren't wide chars. The
BE/LE variants can be dealt with at a pinch with htonl and htons ...
yucky, but should work.

-- Brane

Branko Čibej | Director of Subversion
WANdisco | Realising the impossibilities of Big Data
e. brane_at_wandisco.com
Received on 2014-07-24 10:48:34 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.