SteveKing <stefankueng@gmail.com> wrote on 11/30/2004 09:16:33 AM:
> On Tue, 30 Nov 2004 09:00:36 -0500, Mark Phippard
<markp@softlanding.com> wrote:
> > SteveKing <stefankueng@gmail.com> wrote on 11/30/2004 03:34:03 AM:
> >
> > > The problem with files without BOM's is that you can't tell for sure
> > > if they're UTF8 or not. There are some guessing functions available,
> > > but they all fail under certain circumstances. That's why I haven't
> > > implemented such a guessing function in TortoiseMerge and only rely
on
> > > the BOM's (the only thing that's 100% sure).
> >
> > Just a thought.. Is there something you could do in the UI of TMerge
to
> > indicate if you found the BOM's? Maybe something in the status bar to
> > indicate the encoding you are using? I guess if you do not find them
and
> > you know that it is going to cause a problem, you could display a
dialog.
> > I am not sure how you would know that the BOM not being there is
causing a
> > problem though.
>
> Well, if the BOM's are missing, then it's not dangerous in a way that
> you might loose data - the worst thing that could happen is that your
> eyes get hurt a little by the gibberish which is then shown. BOM's
> missing means _only_ that the char are not shown correctly. They're
> still stored correctly!
I know, I just thought it might save some TMerge questions if you had a
way to either display the encoding you were using, or issue a warning when
you thought there was a problem. Not everyone knows that a BOM is, or
that certain editors remove them. Also, not everyone has a hex editor
installed so thet can check for the BOM. Since you are already checking
for one, it would be a decent enhancement to use that information on the
UI.
As an example, I noticed that Notepad2 shows the encoding and line endings
in the status bar. I think that is a pretty cool idea.
Mark
_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Nov 30 15:24:32 2004