The truth of Bush hid the facts

来源:互联网 发布:oracle数据库中rownum 编辑:程序博客网 时间:2024/05/19 16:49

If you don’t know what is “Bush hid the facts”, let me give you a brief explanation. This instructions work on all windows except Vista. 

  • 1. Open your Notepad
  • 2. Type “bush hid the facts” without quote
  • 3. Save the file with any name
  • 4. Open the file again
What you see isn’t what you typed. This is an easter egg. Or maybe even Microsoft’s programmers hate Bush. That’s what we knew. 
But the truth is that all 4-3-3-5 strings work. So if you type “this app can break”. The same results. It appears to be bug from Microsoft which has been fixed in Vista. Here is someone from JCXP.net forum explanation: 
Whenever we open a text file in notepad, it determines whether the text is ASCII or Unicode.. But actually there is no way in the world to exactly determine whether the text is ASCII or Unicode.. There is a function called IsTextUnicode in windows API.. The function does some tests on the text based on statistical data.. This is what MSDN says about the function.. 
“The function uses various statistical and deterministic methods to make its determination.. 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. For example, if lpBuffer points to the ASCII string 0×41, 0×0A, 0×0D, 0×1D (A/n/r^Z), the string passes the IS_TEXT_UNICODE_STATISTICS test, though failure would be preferable.” 
Okay enough is enough. I hope now you get the idea of what’s really going on.

原创粉丝点击