[haiku-bugs] Re: [Haiku] #9193: Filetype changed on its own

  • From: "humdinger" <trac@xxxxxxxxxxxx>
  • Date: Tue, 20 Nov 2012 14:06:49 -0000

#9193: Filetype changed on its own
-------------------------------------+-------------------------
   Reporter:  dsuden                 |      Owner:  axeld
       Type:  bug                    |     Status:  new
   Priority:  normal                 |  Milestone:  R1
  Component:  Preferences/FileTypes  |    Version:  R1/alpha4.1
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+-------------------------
Changes (by humdinger):

 * owner:  stippi => axeld
 * component:  User Interface => Preferences/FileTypes


Comment:

 Hold on, let me contact the spirits beyond... <insert dark atmospheric
 music>[[BR]]

 I get a "G".... Does the contents of your text file start with a "G" by
 any chance? I bet it does. Culprit is the naive sniffer rule for
 video/mp2t filetypes. It just checks if the first byte is 0x47. Apparently
 transport streams do always beginn with 0x47, but as that's just a "G",
 anything starting with that qualifies.[[BR]]
 [http://cgit.haiku-os.org/haiku/tree/ReadMe.IntroductionToHaiku
 ReadMe.IntroductionToHaiku] in the root of the repository suffers that
 same issue.

 You can "solve" this for the time being by removing the rule in the
 Filetypes preferences.

 Can anyone come up with a better sniffer rule? It looks like after that
 first sync byte, there isn't much to analyze (s.
 [http://en.wikipedia.org/wiki/MPEG_transport_stream#Packet wikipedia]), or
 is there?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9193#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: