Author Topic: What the hell?  (Read 8491 times)

0 Members and 7 Guests are viewing this topic.

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: What the hell?
« Reply #15 on: January 08, 2007, 11:40:12 pm »
Long story short: it's because of a bug when deciding whether or not a file is unicode.

And incidentally, it's not all about 4 3 3 5.  For example, "Bush hid the truth" doesn't work.
It's not really a bug.  A heuristic is being used to guess whether a text file with no indication as to whether it is Unicode or not is probably Unicode.  As such, it's really just making an educated guess based on whether something is likely Unicode or not, and like most guesses, sometimes it gets it wrong.
And it doesn't learn from its mistakes either!  Sheesh. :P
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: What the hell?
« Reply #16 on: January 09, 2007, 02:30:43 am »
And it doesn't learn from its mistakes either!  Sheesh. :P

If it could identify a mistake, there wouldn't be any...

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: What the hell?
« Reply #17 on: January 09, 2007, 11:35:24 am »
And it doesn't learn from its mistakes either!  Sheesh. :P

If it could identify a mistake, there wouldn't be any...
....  It was a joke. :P

And there would be a mistake.  It would have to make atleast one mistake first before it learned from it.   That's how you learn from mistakes, you make them.
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: What the hell?
« Reply #18 on: January 09, 2007, 01:05:52 pm »
....  It was a joke. :P

And there would be a mistake.  It would have to make atleast one mistake first before it learned from it.   That's how you learn from mistakes, you make them.

How's it going to learn from a mistake if it's unable to identify it?  That was my point. :P

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: What the hell?
« Reply #19 on: January 09, 2007, 03:57:24 pm »
....  It was a joke. :P

And there would be a mistake.  It would have to make atleast one mistake first before it learned from it.   That's how you learn from mistakes, you make them.

How's it going to learn from a mistake if it's unable to identify it?  That was my point. :P
... My first post was about it identifying the mistake and then learning about it.. :P
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: What the hell?
« Reply #20 on: January 09, 2007, 04:10:54 pm »
I don't know about you, but I'd hate to have to click "Yep, it's encoded correctly" every time I opened something with notepad. :P

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: What the hell?
« Reply #21 on: January 09, 2007, 07:45:35 pm »
Hmm, I wonder if there's some way to fool it for longer text?

That might be useful for somebody who wants to raise the bar for viewing source on their website, since IE opens source in notepad. 

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: What the hell?
« Reply #22 on: January 09, 2007, 07:49:05 pm »
Hmm, I wonder if there's some way to fool it for longer text?

That might be useful for somebody who wants to raise the bar for viewing source on their website, since IE opens source in notepad. 

An interesting question... I'd guess it gets increasingly hard as the text it has to sample gets longer, though.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: What the hell?
« Reply #23 on: January 09, 2007, 09:02:06 pm »
That's assuming they take the entire file as a sample.  Perhaps they take the first 1024 bytes, in which case it'd be much more possible.

Offline Skywing

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Nynaeve
Re: What the hell?
« Reply #24 on: January 09, 2007, 09:23:27 pm »
That's assuming they take the entire file as a sample.  Perhaps they take the first 1024 bytes, in which case it'd be much more possible.
Notepad will use up to the first 1024 bytes in conjunction with IsTextUnicode (using all available tests).  Determining just what probabilities the tests use is left as an exercise for the reader.

Offline AntiVirus

  • Legendary
  • x86
  • Hero Member
  • *****
  • Posts: 2521
  • Best
    • View Profile
Re: What the hell?
« Reply #25 on: January 09, 2007, 10:23:17 pm »
I don't know about you, but I'd hate to have to click "Yep, it's encoded correctly" every time I opened something with notepad. :P
-.-;;

I mean the program had almost like AI or something. :P Might not be possible, but it'd be nice.
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus