PDA

View Full Version : NOTEPAD BUG: Found by Vishal Gupta a.k.a. Mr. Vista


Vishal Gupta
06-06-2007, 02:40 PM
UPDATE: Don't forget to visit following similar threads:

DID YOU KNOW? Windows Live Mail BUGs & Goof-ups (http://www.thinkdigit.com/forum/showthread.php?t=60002)
DID YOU KNOW? IE7 BUGS & Goof-ups (http://www.thinkdigit.com/forum/showthread.php?t=59450)
DID YOU KNOW? Windows VISTA Facts & Goof-ups (http://www.thinkdigit.com/forum/showthread.php?t=54885)


Guys!

Today I found a BUG in Notepad, which is not new to Vista. I have checked it in XP and its also working there. :rolleyes:

So get ready for enjoying it: :D

1. Open Notepad and enable "Status Bar" from "View -> Status Bar". If this option is disabled, then first uncheck "Format -> Word Wrap" option and now enable Status Bar again. Actually Notepad doesnt allow to hv Status Bar along with Word Wrap feature. U can hv one of them enabled at a time. But there is a registry hack, using it u can hv both of them at the same time. :D

Open regedit and goto:

HKEY_CURRENT_USER\Software\Microsoft\Notepad
In right-side pane, change value of StatusBar to 1.

2. Now open any existing text file (Yeah, you hv to open an already saved file to check this BUG) and put your cursor to any line, you'll see its location in Status Bar.

e.g. we assume that you put the cursor at column 3 of Line 3, then it'll show "Ln 3, Col 3" in Status Bar.

OK, fine then whats the BUG? :D Now press <Ctrl>+S or Choose "File -> Save" and look at the Status Bar. VOILLA, it'll show "Ln 1, Col 1" irrespective of the actual Line and column Number, that was "Ln 3, Col 3" in our case.

http://img245.imageshack.us/img245/1964/notepadbugaj3.jpg

Sometimes you may hv to press <Ctrl>+S twice to re-create this BUG.

So the BUG is whenever you save an existing file, Notepad will show "Ln 1, Col 1" in Status Bar and it'll be corrected when you'll move the cursor. :cool:

iMav
06-06-2007, 02:44 PM
note pad hai yaar itna advanced nahi hai :D

rakeshishere
06-06-2007, 02:51 PM
Its sounds like Bug But M$ might call it an "Easter Egg" :)

Vishal Gupta
06-06-2007, 02:57 PM
No matter what the software is but a BUG is a BUG and I hv reported it to MS. :D
And it can't be called an easter egg. ;)

sam_1710
06-06-2007, 02:59 PM
hey Mr.Vista..
in the view menu of my notepad, the status bar option has been greyed out!! .. why??

rakeshishere
06-06-2007, 03:08 PM
And it can't be called an easter egg. ;)

Even I know that(I was kiddin):D..But Wonder How could some one possibly Not Able to Find such a Silly "BUG" in such a silly APP:confused:

Vishal Gupta
06-06-2007, 03:23 PM
@sam
u missed this part in my first post: ;)

Open Notepad and enable "Status Bar" from "View -> Status Bar". If this option is disabled, then first uncheck "Format -> Word Wrap" option and now enable Status Bar again. Actually Notepad doesnt allow to hv Status Bar along with Word Wrap feature. U can hv one of them enabled at a time. But there is a registry hack, using it u can hv both of them at the same time. :D

Open regedit and goto:

HKEY_CURRENT_USER\Software\Microsoft\Notepad
In right-side pane, change value of StatusBar to 1.

@Rakesh
bcoz a silly person was needed to find this silly bug. :D

sam_1710
06-06-2007, 03:26 PM
oh.. sorry.. dint read it properly!! :(
thanks Vishal!
u got some powerful eyes wid u!! :))

~Phenom~
06-06-2007, 03:57 PM
hmm , nice find.

casanova
06-06-2007, 05:45 PM
Bug not noticed coz people cant go testing around for everything done with registry hacks.

Nice find but not fair to call it a bug. Call it a lapse instead

rakeshishere
06-06-2007, 07:25 PM
Bug not noticed coz people cant go testing around for everything done with registry hacks.

Nice find but not fair to call it a bug. Call it a lapse instead
You Mean..." A Programming Flaw " :D :p

Edit: Or a LoopHole;)

Garbage
06-06-2007, 09:50 PM
I think this is happening bcoz, after saving the file, "File Pointer" is placed again to "First Character" or "@ beginning of file".

isn't it ?

planetcall
06-06-2007, 11:30 PM
http://board.freeones.com/images/smilies/hatsoff.gif

navjotjsingh
07-06-2007, 12:40 AM
I already knew about the first one. Always thought for what they give enable status bar when option itself becomes greyed out. Second one was entirely new for me!

casanova
12-06-2007, 05:05 PM
A flaw in how the program and registry interacts.

Ramakrishnan
12-06-2007, 10:13 PM
Probably the MS programmer needed some sleep and he/she forgot to codify this mistake correctly.

ax3
15-06-2007, 01:06 PM
ooye GUPTAJI ........... aap toh VISTA ke peeche paad gaye .........

keepon bugging .......... aaaah VISTA .........

Quiz_Master
15-06-2007, 01:43 PM
I knew the first one. But that "line" one was new to me. Keep finding bugs...

How u find bugs yaar.... It can take months to foind bugs like this...

Vishal Gupta
15-06-2007, 02:15 PM
I never tried to find any BUG to date. It just come in my way and I post them here. :D

freakitude
17-06-2007, 07:07 PM
Cool :D

piyush gupta
18-06-2007, 10:37 AM
@VISTA

yarr notepad hai very old hai and MS ke pass apke jaisa tester nahin hiana jo Regestry hack karke s/w ko test kare :D

abhijangda
18-06-2007, 11:23 AM
so good one man.

so good one man

Vishal Gupta
18-06-2007, 03:42 PM
thnx guys. :D