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

Re: [TSVN] Re: Re: Re: New info on hooks in docs

From: SteveKing <stefankueng_at_gmail.com>
Date: 2004-11-18 13:14:44 CET

On Thu, 18 Nov 2004 13:03:00 +0100, Lübbe Onken <l.onken@rac.de> wrote:
> Hi Simon,
>
> > We lazy English speakers never see these problems ;-)
> Lucky you :-)

And that's _exactly_ why there's such a mess with those. English
programmers just don't care about standards :(

Since a text file without BOM's can't be shown correctly at all
(without doing some guessing about the encoding) there's a standard
which requires text files to have BOM's in it - it they don't, then
that means they're not UNICODE (UTF-16, UTF-8, ...) but raw ASCII with
a codepage (now guess the required codepage to show the file...).

If you've ever tried to write a simple text editor which can handle
text files with different encodings, you might understand the problems
which arise from stupid programs which simply ignore BOM's or even
remove them (poEdit is one of those who break if a file has BOM's in
it).
That's also one of the reasons why TortoiseMerge doesn't show files
without BOM's incorrectly - there just isn't a 100% reliable way to
detect the correct encoding without them!

> That's exactly the problem[1]. XMLSpy, oXygen and Notepad don't neeed the
> BOMs and leave them as they are. PSPad either adds them to every file or
> deletes them...

> I don't know how often I went through the docs and added the BOMs
> manually...
> Please add them. Or delete them. Or tell me a freeware editor that handles
> UTF-8 with or without BOMs correctly, which leads us back to [1].

_Add_ them, don't delete them. BOM's exist for a reason.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Nov 18 13:14:59 2004

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

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