Bug 101133 - The MSX type lacks .rom and a magic value
Summary: The MSX type lacks .rom and a magic value
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-21 07:27 UTC by Adrien Plazas
Modified: 2017-09-05 12:30 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
application/x-msx-rom: Add .rom glob and magic value (4.12 KB, patch)
2017-05-21 07:43 UTC, Adrien Plazas
Details | Splinter Review
application/x-msx-rom: Add .rom glob and magic value (4.19 KB, patch)
2017-05-24 07:05 UTC, Adrien Plazas
Details | Splinter Review

Description Adrien Plazas 2017-05-21 07:27:09 UTC
.
Comment 1 Adrien Plazas 2017-05-21 07:43:28 UTC
Created attachment 131423 [details] [review]
application/x-msx-rom: Add .rom glob and magic value
Comment 2 Bastien Nocera 2017-05-23 15:40:22 UTC
Comment on attachment 131423 [details] [review]
application/x-msx-rom: Add .rom glob and magic value

Review of attachment 131423 [details] [review]:
-----------------------------------------------------------------

::: freedesktop.org.xml.in
@@ +2969,5 @@
>      <generic-icon name="application-x-executable"/>
>      <glob pattern="*.msx"/>
> +    <glob pattern="*.rom"/>
> +    <magic>
> +      <match type="string" value="AB" offset="0"/>

Is that really all we can do? That's a very short magic :/
Comment 3 Adrien Plazas 2017-05-23 17:09:43 UTC
(In reply to Bastien Nocera from comment #2)
> Comment on attachment 131423 [details] [review] [review]
> application/x-msx-rom: Add .rom glob and magic value
> 
> Review of attachment 131423 [details] [review] [review]:
> -----------------------------------------------------------------
> 
> ::: freedesktop.org.xml.in
> @@ +2969,5 @@
> >      <generic-icon name="application-x-executable"/>
> >      <glob pattern="*.msx"/>
> > +    <glob pattern="*.rom"/>
> > +    <magic>
> > +      <match type="string" value="AB" offset="0"/>
> 
> Is that really all we can do? That's a very short magic :/

That's at least the least common denominator of the magic and AFAICT the only thing we can really use, I'll keep exploring but don't get much hope. :/
Comment 4 Adrien Plazas 2017-05-24 07:05:20 UTC
Created attachment 131459 [details] [review]
application/x-msx-rom: Add .rom glob and magic value
Comment 5 Bastien Nocera 2017-09-05 12:26:15 UTC
Comment on attachment 131459 [details] [review]
application/x-msx-rom: Add .rom glob and magic value

Review of attachment 131459 [details] [review]:
-----------------------------------------------------------------

I'll see whether I can commit the tests though.

::: freedesktop.org.xml.in
@@ +2975,5 @@
>    <mime-type type="application/x-msx-rom">
>      <_comment>MSX ROM</_comment>
>      <generic-icon name="application-x-executable"/>
> +    <magic>
> +      <match type="string" value="AB" offset="0"/>

This is far too short.

@@ +2981,2 @@
>      <glob pattern="*.msx"/>
> +    <glob pattern="*.rom"/>

And this is far too generic (which would be fine if we also had magic, but it's too short).
Comment 6 Bastien Nocera 2017-09-05 12:30:42 UTC
commit 8a3f5b02d08745ea7259eff13e44c326e6323d04
Author: Adrien Plazas <kekun.plazas@laposte.net>
Date:   Sun May 21 09:01:09 2017 +0200

    Add test files for application/x-msx-rom
    
    https://bugs.freedesktop.org/show_bug.cgi?id=101133

Please file a new bug when you find better magic, as it is, it's too short and generic.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.