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

RE: UTF-16 files and inconsistent line endings

From: David Aldrich <David.Aldrich_at_EU.NEC.COM>
Date: Thu, 14 Oct 2010 13:55:21 +0100

Hi Ulrich and Stefan

Thanks for your replies. Using UTF-8 has solved the problem, as you suggested.

Best regards

David

> -----Original Message-----
> From: Ulrich Eckhardt [mailto:eckhardt_at_satorlaser.com]
> Sent: 14 October 2010 12:23
> To: users_at_subversion.apache.org
> Subject: Re: UTF-16 files and inconsistent line endings
>
> On Thursday 14 October 2010, David Aldrich wrote:
> > I am developing with Visual C++ Express 2008 on Windows. I needed to add
> > some Japanese characters to a source file, whereupon the editor stored the
> > file in UTF-16LE encoding.
>
> Subversion doesn't support UTF-16 as text file, it treats it as unknown (raw
> binary) file...
>
> > Subversion (1.6.12) now complains that the file has inconsistent EOL-style.
>
> ...and that doesn't mix well with this text-specific setting.
>
> You could try using UTF-8 instead, though I'm not sure how to explain that to
> MSVC, maybe just storing with a BOM is enough. MSVC allows saving as UTF-8
> when choosing "save as" in the "save" button's drop-down list, notepad.exe
> does that if you save as UTF-8, IIRC.
>
>
> > Is there a workaround for this, such as setting eol-style to CRLF (i.e. not
> > native)?
>
> Simply deleting the svn:eol-style property would also silence the warning.
>
> Uli
>
>
> --
> ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
> FAQ: http://subversion.apache.org/faq.html
> Docs: http://svnbook.red-bean.com/
>
> Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
>
> *****************************************************************************
> *********
> Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
> *****************************************************************************
> *********
> Visit our website at <http://www.satorlaser.de/>
> *****************************************************************************
> *********
> Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten
> bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen
> Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein
> sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen,
> weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
> E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte
> Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht
> verantwortlich.
> *****************************************************************************
> *********
>
>
>
> Click
> https://www.mailcontrol.com/sr/j7TZ4!efwiHTndxI!oX7Ug3O71j94L3XM4taKVk7xLgF5u
> 8fC7h07Llmcw5pzXf0QETRMEibH6EpdY6WjzZSeg== to report this email as spam.
Received on 2010-10-14 14:56:08 CEST

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

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