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. br...@wandisco.com

Reply via email to