HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2007, 04:43 PM
Barry
 
Posts: n/a
Default Notepad bug makes it unusable

I was referred to this newsgroup by the thread at:

http://www.microsoft.com/office/comm...2-e55b312ee180

You'll find details of the bug there, but basically, if you enter a line the
wraps then save the file, line break characters will be added and the line
will no longer be one wrapped line. It will be multiple lines. Copying and
pasting what had been a single line will cause it to be truncated when
pasted, for example, in a browser address bar. Copying and pasting commands
that had these line breaks added will break the command when pasted at the
command line. I can't use Notepad anymore.
Reply With Quote
Sponsored Links
  #2  
Old 10-19-2007, 05:07 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Notepad bug makes it unusable


"Barry" <Barry@discussions.microsoft.com> wrote in message
news:017E7847-3DBC-424E-807C-AD3BF8642B50@microsoft.com...
>I was referred to this newsgroup by the thread at:
>
> http://www.microsoft.com/office/comm...2-e55b312ee180
>
> You'll find details of the bug there, but basically, if you enter a line
> the
> wraps then save the file, line break characters will be added and the line
> will no longer be one wrapped line. It will be multiple lines. Copying and
> pasting what had been a single line will cause it to be truncated when
> pasted, for example, in a browser address bar. Copying and pasting
> commands
> that had these line breaks added will break the command when pasted at the
> command line. I can't use Notepad anymore.


I cannot see any evidence of a bug that causes line breaks to be added.
If you think that they exist then I suggest you post a step-by-step
recipe that others can follow to confirm (or otherwise) your suspicon.
Don't rely on someone else's unconformed reports - try it for yourself,
then show us!


Reply With Quote
  #3  
Old 10-19-2007, 05:51 PM
Barry
 
Posts: n/a
Default Re: Notepad bug makes it unusable

I was the bug reporter in the other thread. I _have_ tried it.

To reproduce it:

1. Open http://www.polisource.com/misc/notepad-bug.txt in Notepad, with
"word wrap" checked, when the Notepad window isn't full-screen size (mine is
about half the size of my monitor), then maximize Notepad so it's full-screen
size and you'll see the text spread out to fit the width of the screen. (this
step is just to show that the line is a single line that wraps as such).

2. Make the screen smaller again and save the file, then maximize again, and
you'll see that the text won't be spread out.

This shows that the document on the screen changes when it's saved. Line
breaks are added.

Reply With Quote
  #4  
Old 10-19-2007, 06:38 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Notepad bug makes it unusable


"Barry" <Barry@discussions.microsoft.com> wrote in message
news:48B2E3B1-F6FC-4763-8A8A-3C0E5B53C97B@microsoft.com...
>I was the bug reporter in the other thread. I _have_ tried it.
>
> To reproduce it:
>
> 1. Open http://www.polisource.com/misc/notepad-bug.txt in Notepad, with
> "word wrap" checked, when the Notepad window isn't full-screen size (mine
> is
> about half the size of my monitor), then maximize Notepad so it's
> full-screen
> size and you'll see the text spread out to fit the width of the screen.
> (this
> step is just to show that the line is a single line that wraps as such).
>
> 2. Make the screen smaller again and save the file, then maximize again,
> and
> you'll see that the text won't be spread out.
>
> This shows that the document on the screen changes when it's saved. Line
> breaks are added.
>


I tried to follow your recipe as closely as I could even though you
omitted some essential details, e.g. when LineWrap should be
turned on and when it should be turned off, or when the file should
be saved/closed/reopened. I left LineWrap on at all times.

I was unable to reproduce your findings. Each time I expanded
the width of the screen the lines expanded to whatever the
current window could accommodate.

Your conclusion "This shows that the document on the screen
changes when it's saved. Line breaks are added." lacks
substance. To demonstrate that line breaks are added, you need
to examine the file with a binary viewer / editor. If you don't
have one, use debug.exe. I checked the file with such an editor -
there were no extra line breaks added.

Lastly it is highly speculative to suggest a bug when you base
your conclusion on an observation on one single machine. You
should test your theory at the very least on two completely
independent machines but preferably on three or four. For
all we know, it might be your own machine that has a bug, not
notepad.exe.


Reply With Quote
  #5  
Old 10-19-2007, 08:06 PM
Bill Sharpe
 
Posts: n/a
Default Re: Notepad bug makes it unusable

Pegasus (MVP) wrote:
> "Barry" <Barry@discussions.microsoft.com> wrote in message
> news:48B2E3B1-F6FC-4763-8A8A-3C0E5B53C97B@microsoft.com...
>> I was the bug reporter in the other thread. I _have_ tried it.
>>
>> To reproduce it:
>>
>> 1. Open http://www.polisource.com/misc/notepad-bug.txt in Notepad, with
>> "word wrap" checked, when the Notepad window isn't full-screen size (mine
>> is
>> about half the size of my monitor), then maximize Notepad so it's
>> full-screen
>> size and you'll see the text spread out to fit the width of the screen.
>> (this
>> step is just to show that the line is a single line that wraps as such).
>>
>> 2. Make the screen smaller again and save the file, then maximize again,
>> and
>> you'll see that the text won't be spread out.
>>
>> This shows that the document on the screen changes when it's saved. Line
>> breaks are added.
>>

>
> I tried to follow your recipe as closely as I could even though you
> omitted some essential details, e.g. when LineWrap should be
> turned on and when it should be turned off, or when the file should
> be saved/closed/reopened. I left LineWrap on at all times.
>
> I was unable to reproduce your findings. Each time I expanded
> the width of the screen the lines expanded to whatever the
> current window could accommodate.
>
> Your conclusion "This shows that the document on the screen
> changes when it's saved. Line breaks are added." lacks
> substance. To demonstrate that line breaks are added, you need
> to examine the file with a binary viewer / editor. If you don't
> have one, use debug.exe. I checked the file with such an editor -
> there were no extra line breaks added.
>
> Lastly it is highly speculative to suggest a bug when you base
> your conclusion on an observation on one single machine. You
> should test your theory at the very least on two completely
> independent machines but preferably on three or four. For
> all we know, it might be your own machine that has a bug, not
> notepad.exe.
>
>

I can reproduce Barry's visual results on my machine, but the file size
is identical(297 bytes) when I save the file with WordWrap on (and four
lines showing) or WordWrap off (with one line showing). Frankly I don't
see this as making Notepad unusable for several reasons:
1. I don't use Notepad often.
2. I leave WordWrap on all the time in Notepad.
3. I don't resize the Notepad window.
4. As Pegasus points out, there are no line break characters added to
the file.

Bill
Reply With Quote
  #6  
Old 10-19-2007, 08:15 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Notepad bug makes it unusable


"Bill Sharpe" <wfsnopam@adelphia.net> wrote in message
news:u7djRuoEIHA.5980@TK2MSFTNGP04.phx.gbl...
> Pegasus (MVP) wrote:
>> "Barry" <Barry@discussions.microsoft.com> wrote in message
>> news:48B2E3B1-F6FC-4763-8A8A-3C0E5B53C97B@microsoft.com...
>>> I was the bug reporter in the other thread. I _have_ tried it.
>>>
>>> To reproduce it:
>>>
>>> 1. Open http://www.polisource.com/misc/notepad-bug.txt in Notepad, with
>>> "word wrap" checked, when the Notepad window isn't full-screen size
>>> (mine is
>>> about half the size of my monitor), then maximize Notepad so it's
>>> full-screen
>>> size and you'll see the text spread out to fit the width of the screen.
>>> (this
>>> step is just to show that the line is a single line that wraps as such).
>>>
>>> 2. Make the screen smaller again and save the file, then maximize again,
>>> and
>>> you'll see that the text won't be spread out.
>>>
>>> This shows that the document on the screen changes when it's saved. Line
>>> breaks are added.
>>>

>>
>> I tried to follow your recipe as closely as I could even though you
>> omitted some essential details, e.g. when LineWrap should be
>> turned on and when it should be turned off, or when the file should
>> be saved/closed/reopened. I left LineWrap on at all times.
>>
>> I was unable to reproduce your findings. Each time I expanded
>> the width of the screen the lines expanded to whatever the
>> current window could accommodate.
>>
>> Your conclusion "This shows that the document on the screen
>> changes when it's saved. Line breaks are added." lacks
>> substance. To demonstrate that line breaks are added, you need
>> to examine the file with a binary viewer / editor. If you don't
>> have one, use debug.exe. I checked the file with such an editor -
>> there were no extra line breaks added.
>>
>> Lastly it is highly speculative to suggest a bug when you base
>> your conclusion on an observation on one single machine. You
>> should test your theory at the very least on two completely
>> independent machines but preferably on three or four. For
>> all we know, it might be your own machine that has a bug, not
>> notepad.exe.

> I can reproduce Barry's visual results on my machine, but the file size is
> identical(297 bytes) when I save the file with WordWrap on (and four lines
> showing) or WordWrap off (with one line showing). Frankly I don't see this
> as making Notepad unusable for several reasons:
> 1. I don't use Notepad often.
> 2. I leave WordWrap on all the time in Notepad.
> 3. I don't resize the Notepad window.
> 4. As Pegasus points out, there are no line break characters added to the
> file.
>
> Bill


Your report suggests that the ***visual*** line breaks may be
repositioned after the notepad window is resized. The OP's
claim that line breaks are inserted into the file must have been
based on this observation only rather than on a close examination
of the file itself.


Reply With Quote
  #7  
Old 10-19-2007, 09:21 PM
Barry
 
Posts: n/a
Default Re: Notepad bug makes it unusable

The line breaks aren't added to the file, but they can be copied to the
clipboard from the text in Notepad. Resizing isn't necessary for the unwanted
line breaks to be added. All you have to do is save the document and then if
you copy the text to the clipboard, the line breaks will be copied too. I
just mentioned resizing Notepad as an easy way to see the changing line
length.

I've tried copying text from Notepad after saving the file and noticed the
full line couldn't be pasted in IE's address bar because it was truncated at
the line breaks that Notepad added. I've also tried copying commands and
pasting them in a console window and they appeared as more than one line and
didn't function as commands.

"Bill Sharpe" wrote:
Frankly I don't
> see this as making Notepad unusable for several reasons:
> 1. I don't use Notepad often.
> 2. I leave WordWrap on all the time in Notepad.
> 3. I don't resize the Notepad window.
> 4. As Pegasus points out, there are no line break characters added to
> the file.

Reply With Quote
  #8  
Old 10-19-2007, 09:56 PM
HeyBub
 
Posts: n/a
Default Re: Notepad bug makes it unusable

Barry wrote:
> The line breaks aren't added to the file, but they can be copied to
> the clipboard from the text in Notepad. Resizing isn't necessary for
> the unwanted line breaks to be added. All you have to do is save the
> document and then if you copy the text to the clipboard, the line
> breaks will be copied too. I just mentioned resizing Notepad as an
> easy way to see the changing line length.


Well, duh!

You're not copying the FILE to the clipboard, you're copying what's
displayed on Notepad's screen. The screen has line breaks (else you'd have
to scroll all over the place).


Reply With Quote
  #9  
Old 10-19-2007, 10:09 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Notepad bug makes it unusable


"Barry" <Barry@discussions.microsoft.com> wrote in message
news:560318F7-A737-454F-BCF8-B4E2B87DCCA5@microsoft.com...
> The line breaks aren't added to the file, but they can be copied to the
> clipboard from the text in Notepad. Resizing isn't necessary for the
> unwanted
> line breaks to be added. All you have to do is save the document and then
> if
> you copy the text to the clipboard, the line breaks will be copied too. I
> just mentioned resizing Notepad as an easy way to see the changing line
> length.
>
> I've tried copying text from Notepad after saving the file and noticed the
> full line couldn't be pasted in IE's address bar because it was truncated
> at
> the line breaks that Notepad added. I've also tried copying commands and
> pasting them in a console window and they appeared as more than one line
> and
> didn't function as commands.
>


That's something completely different than what you posted
in your previous "step-by-step" procedure. When chasing
bugs you need to be
a) consistent and
b) comprehensive

I can't detect much of either in your notes.


Reply With Quote
  #10  
Old 10-19-2007, 10:55 PM
Barry
 
Posts: n/a
Default Re: Notepad bug makes it unusable

In my step by step I wrote "This shows that the document on the screen
changes when it's saved. Line breaks are added." Maybe you were confused by
my top post which said "basically, if you enter a line the wraps then save
the file, line break characters will be added and the line will no longer be
one wrapped line" but that wasn't in my "step-by-step procedure."

You have an attitude problem. You should go away.

"Pegasus (MVP)" wrote:

>
> "Barry" <Barry@discussions.microsoft.com> wrote in message
> news:560318F7-A737-454F-BCF8-B4E2B87DCCA5@microsoft.com...
> > The line breaks aren't added to the file, but they can be copied to the
> > clipboard from the text in Notepad. Resizing isn't necessary for the
> > unwanted
> > line breaks to be added. All you have to do is save the document and then
> > if
> > you copy the text to the clipboard, the line breaks will be copied too. I
> > just mentioned resizing Notepad as an easy way to see the changing line
> > length.
> >
> > I've tried copying text from Notepad after saving the file and noticed the
> > full line couldn't be pasted in IE's address bar because it was truncated
> > at
> > the line breaks that Notepad added. I've also tried copying commands and
> > pasting them in a console window and they appeared as more than one line
> > and
> > didn't function as commands.
> >

>
> That's something completely different than what you posted
> in your previous "step-by-step" procedure. When chasing
> bugs you need to be
> a) consistent and
> b) comprehensive
>
> I can't detect much of either in your notes.


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who makes motherboards for Acer? MHF Acer 5 01-30-2008 03:45 PM
Start Menu Icons Unusable Hasan Sheriff Windows Vista 3 08-28-2007 03:36 AM
Why ALT key makes other controls disappear? Henry Windows Vista 3 06-06-2007 02:42 PM
Who makes the best TN 22" LCD ?? question ATI videocards 14 05-04-2007 01:48 AM
Vista unusable. Crashes after each login. JChronakis@gmail.com Windows Vista 2 03-29-2007 09:59 PM


All times are GMT. The time now is 09:03 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger