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

Re: Bug: svn:mime-type and svn:eol-style on UTF-16 XML files

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-08-24 17:06:00 CEST

Servatius.Brandt@fujitsu-siemens.com wrote:

>1st problem:
>
>I have an XML file in UTF-16 encoding, little endian. It starts with
>a BOM FFFE at the beginning of its first line, which is:
>
><?xml version="1.0" encoding="UTF-16"?>
>
>The "svn add" command sets the property svn:mime-type to
>application/octet-stream. I consider this a bug.
>
It's not a bug. Subversion doesn't support UTF-16 as text; this feature
simply hasn't been implemented yet.

>2nd problem:
>
>To work around the first problem, I can change the svn:mime-type to
>text/xml,
>then the "svn diff" works fine.
>
Only if you're lucky.

> But it is not possible to set the
>svn:eol-style to CRLF, which is the line endings style used by the file.
>
>
You don't have to set svn:eol-style if keeping the file contents
unchanged is sufficient.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 24 17:08:05 2005

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.