[haiku-bugs] Re: [Haiku] #10067: Extension should determine file type with same sniffer rule

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 02 Jan 2021 17:31:39 -0000

#10067: Extension should determine file type with same sniffer rule
--------------------------------+-----------------------------------
  Reporter:  humdinger          |      Owner:  bonefish
      Type:  enhancement        |     Status:  new
  Priority:  normal             |  Milestone:  R1
 Component:  Servers/registrar  |    Version:  R1/Package Management
Resolution:                     |   Keywords:
Blocked By:                     |   Blocking:  10917
  Platform:  All                |
--------------------------------+-----------------------------------
Comment (by pulkomandy):

 You can improve the sniffing rule to detect more languages :)

 Detecting {{{require "}}} near the start of the file should be enough?

 In general extensions are considered a legacy thing from DOS/Windows that
 we should not still be using in this millenia. Files should be created
 with a MIME type, by the text or code editor you use to create them, or by
 the tool you use to import them into Haiku (for example WebPositive will
 use the MIME type specified in HTTP headers when downloading a file).

 The sniffing rules are already a fallback and it seems a bit strange to
 need a fallback to the fallback.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/10067#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: