92 Comments
- noamsml, on 10/12/2007, -7/+86I must admit that the fact that Windows Notepad has a bug is somewhat hilarious. I hope they fix it by Windows Vista.
- HardSide, on 11/04/2007, -4/+60Its funny you mention that, yesterday after ordering chinease I open up my fortune cookie and it says and I quote "Microsoft Service NT error 040801 line 4 missing"
I almost fell off my chair when I read that. I saved it and keep it in my wallet...truely a nerd. - 1021, on 10/12/2007, -3/+56wow, fixed in Vista! These must be the "significant upgrades" they were speaking of... now I'll get Vista for sure!!
- neoknight, on 10/12/2007, -65/+105There's nothing to fix, he did hide the facts.
- ryanknapper, on 10/12/2007, -2/+38I just tried it in Vista and it didn't work.
- simpleid, on 10/12/2007, -14/+49This is crazy talk... any statement which takes the below format will "not work."
XXXX XXX XXX XXXXX
Nice try.
I hope you guys realize this was already on digg and fully explained. - shiftless, on 11/04/2007, -18/+38http://www.duggmirror.com
- GABULLDAWG, on 10/12/2007, -4/+18"So, by induction, all "4-3-3-5" strings should work."
I just tried "busx hix thx factx" and it displayed properly, so it appears the "4-3-3-5" rule does not hold. - interiot, on 10/12/2007, -0/+13On WinXP at least, Notepad.exe calls IsTextUnicode(). Microsoft's man page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81np.asp notes that "The ... tests use statistical analysis. These tests are not foolproof. The statistical tests assume certain amounts of variation between low and high bytes in a string, and some ASCII strings can slip through."
It's not really specifically where the spaces are (spaces are just one part of the bit string, after all), it's more a matter of finding cases that the statistical tests give a (probably) incorrect answer. Although this specific man page doesn't mention it, these sorts of functions work significantly better on longer strings of text. For these short strings, it's legitimately statistically difficult to guess what encoding is used for the file.
This is why including metadata that explicitly specifies the text encoding used is a very good thing. - wizbor, on 10/12/2007, -2/+15Heres one for all you gmail users. Open up a new "compose mail" and mispell google adsense like this " googleadsens " then check the spelling and suggested word. LOL somebody at google spellcheck dept having some fun it seems. Wonder how many more there are. I discovered that one the other day as my spel'n aaint so great. Oh, for those witout gmail it suggest "kluztiness".
- daedalus1982, on 10/12/2007, -8/+21OLD NEWS just like "this app can break" works on the same principle. rehash something old and used with a controversial leader and you've got yourself a Digg. congratulations everyone on finding this NEW Easter egg. I'm no Bush supporter but do you expect a man in charge (if only loosely) of the security of a nation to be open and just tell things that could damage a country to the press? bush hid facts just like every president before him. and every president after him will too. you're all just mad he was either (dumb/honest) enough to (admit/let on to) untold secrets.
- cds0528, on 10/12/2007, -0/+10@hardside
I just fell out of my chair laughing at what you just said... You weren't being serious... right? If you were please please please send me a picture. - celopes, on 10/12/2007, -34/+43I think the fix started on the mid term elections... ;-)
- hobnob, on 10/12/2007, -2/+10@kd1s:
my fully patched xp box seems to have the problem - rkoopmann, on 10/12/2007, -0/+8you totally ruined it...i preferred the easter egg theory.
- celisyn, on 10/12/2007, -0/+6Found this under the comments of a previous digg story. It's just a clearer explanation of what happens (pretty much what the comment above mine says).
http://apipes.blogspot.com/2006/06/this-api-can-break.html - daedalus1982, on 10/12/2007, -0/+5Kinda hard to add "in bed" to the end of it huh. not quite as catchy as "you will be most fortunate today"
- vafada, on 10/12/2007, -3/+8it's a shame that such a small application can have this lousy bug... and notepad has been around for years
- invader, on 10/12/2007, -0/+5yeah, i remember when "this app can break" made it to the digg front page.. i don't believe it offered as comprehensive of an explanation.
thanks for doing some research (author) - interiot, on 10/12/2007, -0/+4See my comments above, the only 100% guaranteed "solution" is to have Notepad never try to guess whether a file is Unicode or not... Either it would explicitly know from the byte-order mark, or it would fall back and render the file as ASCII, regardless of whether it's likely Unicode or not. But then you could complain that Notepad won't read all of your unicode files properly.
- SCAdvanced, on 10/12/2007, -0/+4It seems that it only works the first time. If you save the file, open it, erase what you put in and change it, it doesn't do it again. But if you just open notepad, then type in whatever, then save and open back up it does work with anything.
I tried bana nas are goods - ayeroxor, on 10/12/2007, -0/+3perhaps the resulting 4-character hex values do not have unicode equivalents, so the guessing mechanism returns ANSI.
- RobbL, on 10/12/2007, -0/+34-3-3-5?
Doesn't that spell "Geek" on your phone? - interiot, on 10/12/2007, -0/+3@celisyn: The page is wrong though... it's not Window's fault, per-se. The same kind of function exists in other apps and other operating systems. Any time an app is forced to guess what the encoding is via statistical means, there *will* be very short strings that will make the algorithm return a different encoding than what the author intended.
Eg. here's another one: http://www.die.net/doc/linux/man/man1/enca.1.html It "uses... a mixture of parsing, statistical analysis, guessing and black magic to determine their encodings". I'll give you one guess whether black magic and guessing is 100% right all the time. - NewPunk, on 10/12/2007, -0/+3This bug isn't present in Vista. Coolness... but Vista is hurting, I need to switch back to XP Professional.
- inactive, on 10/12/2007, -1/+3great description, however disappointing it may be. i kinda liked thinking that there were some comics out there in the windows world after all.
- HardSide, on 10/12/2007, -0/+2Err...no camera...ill ask my brother to borrow his. But to prove this, apparently there are a lot of "fortune cookie" programs spread out on the net...
http://www.freedownloadscenter.com/Information_Management/Daily_Pop-up_Information/Fortune_Cookies.html - KDX200rider, on 10/12/2007, -1/+2Simpleid,
Your right XXXX XXX XXX XXXXX won't work,
but xxxx xxx xxx xxxxx will. Lowercase. - nawin, on 10/12/2007, -0/+1This was already explained by me in JCXP.net..
http://www.jcxp.net/forums/index.php?s=&showtopic=7966&view=findpost&p=117075
The only difference between this article and mine is, mine was not put up on digg.. - inactive, on 10/12/2007, -0/+1Cool, another conspiracy theory jack ass. Get a ***** life.
- inactive, on 10/12/2007, -0/+1well he did, didn't he.
- magicmarc, on 10/12/2007, -1/+2Comments on that site look similar to digg. The rate icons, and the page numbers.
- BigFoot48, on 10/12/2007, -0/+1"doesn't that take explosives?"
Not in a steel mill. - Locke2053, on 10/12/2007, -2/+3Not every OS is as bad about this as Windows is, I think. See this screenshot:
[user@vmserv1 vmware]$ echo 'bush hid the facts' > test
[user@vmserv1 vmware]$ file test
test: ASCII English text
No unicode there! - mbmatt, on 10/12/2007, -0/+1"Mount Albert 桳 Hour by showing video games seized mongoose"
(Google's translation, of the resulting Chinese text) - texnofobix, on 10/12/2007, -0/+1he's right
- magicmarc, on 10/12/2007, -0/+1this was now bury.
Will that work? - CovardeAnonimo, on 10/12/2007, -0/+1as i commented on the linked blog, this bug is caused by incorrect handling of endianism.
my guess is, after reading the file on disk (where it's stored in big endian format, which is what you get when you write it to the file byte-by-byte), notepad passes the string to IsTextUnicode() in little endian format (which means the more significative and less significative bytes of a 16-bit word are swaped), while IsTextUnicode() expects it in big endian format.
endianism handling can be a bitch sometimes. - camino262, on 10/12/2007, -0/+1Notepad will read the text if you use file>open and change the encoding to UTF-8. I saved a file that says "this app can break" verified notepad pukes when trying to open the file, then used the file>open method and changed the encoding to UTF-8. I did get my original string back.
- nubnub, on 10/12/2007, -0/+1Old... and btw is FIXED in vista.
- Cander, on 10/12/2007, -2/+3Yawn. Here come the armchair demolition experts who have been destroyed plenty of times already.
- dandv, on 11/30/2007, -0/+1It's a UTF-16 encoding detection bug in Notepad and it happens for more phrases (see http://en.wikipedia.org/wiki/Bush_hid_the_facts).
PS1: The original link in this digg article is dead.
PS2: At the time I write this, Digg says there are 92 comments, but only 1 is visible, even after expanding the full tree. - compressedaudio, on 10/12/2007, -0/+1did you read the article?
- ronjohnson, on 10/12/2007, -0/+1Old news, covered 6 months ago.
- griz, on 10/12/2007, -1/+1Wow, this many people actually care about Windows Notepad?
- inactive, on 10/12/2007, -0/+0"wtf why are u guys burying the duggmirror link? this guy's site is down after only 6 diggs."
maybe because duggmirror removes the ads from the website?
It's the guy's content and he worked for it and should be repayed instead of some other website (duggmirror.com) to take his work and make money off his back. - speaker219, on 10/12/2007, -1/+1Hmm... "note pad rly sucks" doesn't work... there must be more to this
- mush0010, on 10/12/2007, -0/+0amazing concept and conclusion of the whole matter! I think i peed a little after reading about bisexual trees touching mountain dogs inappropriately.
- stevelucky, on 10/12/2007, -1/+1how about "this site can break my browser"? this site crashes opera for me everytime. weird.
- seventoes, on 10/12/2007, -5/+4notepad2 wasnt made by microsoft, so theres no way it could have any bugs.
-
Show 51 - 92 of 92 discussions

What is Digg?