Clan x86

General Forums => General Discussion => Topic started by: iago on June 14, 2006, 05:42:25 PM

Title: Even Notepad knows....
Post by: iago on June 14, 2006, 05:42:25 PM
Try this, it's really cool:

- Open notepad
- Type in, "Bush hid the facts" without quotes and with no newline at the end
- Save it
- Open it

It should be replaced with Chinese characters or something. 

Weird?

More details later, maybe.. :P
Title: Re: Even Notepad knows....
Post by: Warrior on June 14, 2006, 05:46:24 PM
This is dumb, try the same thing with "Rush hid the facts" or "Kush hid the facts"
Title: Re: Even Notepad knows....
Post by: Newby on June 14, 2006, 05:53:05 PM
Does not work for me. File name matter?
Title: Re: Even Notepad knows....
Post by: GameSnake on June 14, 2006, 05:56:31 PM
Quote from: iago on June 14, 2006, 05:42:25 PM
Try this, it's really cool:

- Open notepad
- Type in, "Bush hid the facts" without quotes and with no newline at the end
- Save it
- Open it

It should be replaced with Chinese characters or something. 

Weird?

More details later, maybe.. :P

Why are you so anti-bush/america? Is this how all canadians act?
Title: Re: Even Notepad knows....
Post by: dark_drake on June 14, 2006, 05:58:49 PM
That's pretty cool! Now, why does it do that?
Title: Re: Even Notepad knows....
Post by: CrAz3D on June 14, 2006, 06:03:26 PM
Notepad must be a terrorist!!!!!!!!!
Title: Re: Even Notepad knows....
Post by: dark_drake on June 14, 2006, 06:04:19 PM
Quote from: CrAz3D on June 14, 2006, 06:03:26 PM
Notepad must be a terrorist!!!!!!!!!
Let's invade it!!!
Title: Re: Even Notepad knows....
Post by: MyndFyre on June 14, 2006, 06:31:57 PM
This is because Notepad attempts to determine the encoding (ANSI or Unicode) based on the types of characters in the file.  If there's not a newline, it can't tell based on the newline character (which is wide in Unicode).  "iago hid the facts" works too.
Title: Re: Even Notepad knows....
Post by: CrAz3D on June 14, 2006, 06:32:34 PM
iago is a terrorist!!!!!!
Title: Re: Even Notepad knows....
Post by: Super_X on June 14, 2006, 06:37:08 PM
Quote from: CrAz3D on June 14, 2006, 06:32:34 PM
iago is a terrorist!!!!!!
I call dibs on spearheading. I want to penetrate his defences!
Title: Re: Even Notepad knows....
Post by: CrAz3D on June 14, 2006, 06:38:37 PM
Quote from: Super_X on June 14, 2006, 06:37:08 PM
Quote from: CrAz3D on June 14, 2006, 06:32:34 PM
iago is a terrorist!!!!!!
I call dibs on spearheading. I want to penetrate his defences!
penetrate away dude!
Title: Re: Even Notepad knows....
Post by: iago on June 14, 2006, 11:01:43 PM
Obviously blaming Bush was a joke.  If any of you took my original post seriously, you need to get your heads examined. 

It happens with most (but not all) files that have a 4 letter words, two 3 letter words, and a 5 letter word.  xxxx xxx xxx xxxxx. 

Here are some examples:
this app can break
dead jfk gun shots
Mary had old lambs

And it doesn't happen with the following:
Mary had new lambs
This app can break

And apparently, some other combinations also work:
aaaa aaa aaa aaa
aa aaa aaa

And the best guess I've seen about the cause:
Quote_If_ you save a file that works from its "borked looking" state in
Notepad, you'll get a hint of what may be going on -- the file is
prepended with the 0xFF 0xFE Unicode marker.  My guess -- this
weirdness is due to some peculiar, non-standard attempt to detect non-
flagged Unicode encoding, or some unusual/non-standard form of Unicode
encoding.
Title: Re: Even Notepad knows....
Post by: Newby on June 14, 2006, 11:31:52 PM
Weird how it breaks in Windows yet not in wine? :|
Title: Re: Even Notepad knows....
Post by: MyndFyre on June 14, 2006, 11:57:26 PM
Quote from: Newby on June 14, 2006, 11:31:52 PM
Weird how it breaks in Windows yet not in wine? :|
Probably indicates a Wine API is broken.
Title: Re: Even Notepad knows....
Post by: GameSnake on June 15, 2006, 12:18:10 AM

MyndFyre: Bush hid the facts worked for me but iago hid the facts did not.
Title: Re: Even Notepad knows....
Post by: deadly7 on June 15, 2006, 01:31:58 AM
Quote from: MyndFyrex86] link=topic=6243.msg74676#msg74676 date=1150343846]
Quote from: Newby on June 14, 2006, 11:31:52 PM
Weird how it breaks in Windows yet not in wine? :|
Probably indicates a Wine API is broken.
Or a Windows API is broken and Wine fixed it, beknownst to them or not.
Title: Re: Even Notepad knows....
Post by: RoMi on June 15, 2006, 08:41:38 AM
No, becasue if Wine was doing its job in the first place, and emulating the Windows API 100% then even a bug should call for sucessful emulation of said bug.
Title: Re: Even Notepad knows....
Post by: iago on June 15, 2006, 09:54:19 AM
Incidentally, it's also a bug in notepad2.  Which proves that it's an API thing. 
Title: Re: Even Notepad knows....
Post by: Sidoh on June 15, 2006, 04:12:17 PM
Funny.  You can select the encoding in the save dialog, though -- as I'm sure most of you noticed. :P