Live data from Hacker News

Bug in Notepad Involving Asterisk in Title Bar

suszter.com

71–80 of 132 posts

Re: Bug in Notepad Involving Asterisk in Title Bar

#74

not asking to get into an app namedropping war, but do alot of ppl use Notepad still? Kind of moved away from it years ago due to encoding, lack of some features etc

I use it explicitly to lose formatting while I copy from browser to an application like excel or Word. The intermediate step causes it to lose all unnecessary text properties.

Re: Bug in Notepad Involving Asterisk in Title Bar

#75
post #40

Aside from everything else, I have great respect for people who find bugs in widely used and long-established software. Even though this may not be a major bug, I admire the bugfinder just the same.

Notepad is indeed long established. But it's in active development.

OK, that's an exaggeration, but it is occasionally developed, despite its appearance not changing much in 25 years.

My favourite features it gained were support for Unix (LF) line endings, and support for normal UTF-8 (without a BOM).

Re: Bug in Notepad Involving Asterisk in Title Bar

#77
post #9

Earlier quoted context omitted.

Huh (confirmed), trying to imagine that code path. Edit: Played around a bit, it's odd. For example then click on a different window (release focus) does trigger the update.

Just looking at the messages received, it looks like they're triggering off a few different things to fall into the code path that looks for changes (the missing numbers are due to me deleting uninteresting messages): 002A1272 P WM_KEYDOWN nVirtKey:VK_DELETE cRepeat:1 ScanCode:53 fExtended:1 fAltDown:0 fRepeat:0 fUp:0 002A1272 S EM_POSFROMCHAR wCharIndex:0 004E0A18 S WM_COMMAND wNotifyCode:EN_CHANGE wID:15 hwndCtl:00…

Ah, yes...that's what I was getting at. Notepad is mostly a wrapper around a rich edit control, and rich edit controls already emit "EN_CHANGE" when the content changes. So I suppose this must be some historical thing where an earlier version of notepad didn't have something like that to tee into.

Re: Bug in Notepad Involving Asterisk in Title Bar

#79

not asking to get into an app namedropping war, but do alot of ppl use Notepad still? Kind of moved away from it years ago due to encoding, lack of some features etc

My use cases:

1) to strip formatting of text

2) to validate text. For example spotting an O or 0, | or l, etc. Its quite normal when dealing with user input to find configuration errors this way

3) Quick temporary paste buffer. Nice when jotting down phonecalls. Better than onenote since it opens quickly and ready to accept input. it never opens on some random page full of categorized notes.

Post reply on HN