[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Changes by Éric Araujo mer...@netwok.org: -- resolution: accepted - fixed stage: commit review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Grygoriy Fuchedzhy grygoriy.fuched...@gmail.com added the comment: Shouldn't .svgz be also added as 'image/x-svg+xml'? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: No, the other combined suffixes are not either. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Éric Araujo mer...@netwok.org added the comment: I believe the patch should add the used but non-standard image/svg+xml type to the common_type dictionary, not invent a new x- type. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
R. David Murray rdmur...@bitdance.com added the comment: Yes, adding the x- version would probably be pointless as most likely nobody uses it. Has anyone found any definitive info on where exactly in the approval process image/svg+xml is? I think we should probably just go ahead and put it in, but it would be nice to link to some mailing list discussion somewhere that indicates that it is solidly standards track. I found a mailing list posting from 2000 about browser support. I found this: http://www.w3.org/TR/SVG/intro.html from June 2010 saying the registration was in progress at the w3c. How w3c registration relates to IANA registration is not entirely clear, but most likely IANA wouldn't register it without w3c approving it first. RFC 3023 mentions it and says it hasn't been approved yet so it shouldn't be used. That was in 2001. Why the incredibly long delay? As best as I can guess, the mime-type registration is conditioned on the acceptance of the underlying SVG standard it references, and that standard (SVG 1.1) has not yet been ratified by the W3C, which is, if I'm underanding the RFCs correctly, required for IANA approval of the media type request. SVG 1.1 has, according to wikipedia, been put out for Last Call. All of which seems pretty irrelevant to the value and likely stability of the image/svg+xml name itself. Since all the major browsers are supporting it, as far as I can tell, I think Python should too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: I obviously misunderstood the instruction about 'x-' and will remove that. Should I leave the entry where it is or move as Éric suggested? -- Added file: http://bugs.python.org/file20149/mimetypes.svg2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Éric Araujo mer...@netwok.org added the comment: I’m not sure; the common_types is actually for invalid but used types, like image/jpg (the correct one is image/jpeg and is listed in types_map). The status of IANA registration is unclear (thanks David for looking at that); since common tools understand that media type, let’s pretend it’s registered. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
R. David Murray rdmur...@bitdance.com added the comment: No, I don't think it qualifies as a common_type. But since this is technically a feature request we need Georg's approval for the commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
R. David Murray rdmur...@bitdance.com added the comment: Got approval from Georg on IRC, so go ahead and commit it, Terry. Or assign it to me if you'd rather I do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: r87460 -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Terry J. Reedy tjre...@udel.edu added the comment: Patch attached. The instructions, after editing the url, are # Before adding new types, make sure they are either registered with IANA, # at http://www.iana.org/assignments/media-types # or extensions, i.e. using the x- prefix Since there is no registration yet, I add the x- prefix. I presume that can be deleted without harm when it is registered. David, is that true? Georg, is this OK for 3.2c1? It can only break code depending on the entries not existing. -- assignee: - terry.reedy keywords: +patch Added file: http://bugs.python.org/file20143/mimetypes.svg.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
Éric Araujo mer...@netwok.org added the comment: +1 on adding SVG types in 3.2 or 3.3. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map
R. David Murray rdmur...@bitdance.com added the comment: I think a variance from the policy stated in mimetypes is quite possible, and the kind of information you provide, Terry, is a step in that direction. We would need release manager approval, of course, since we are in Beta, but this is a small enough change I think it would fly, assuming the policy variance is approved. For types_map, it's a doc bug. It is indeed a tuple of dictionaries, the first being the limited, 'strict' set and the second normally including stuff from the standard locations, which on windows includes the registry. So, there is an argument in favor of adding the suffix map even if the types_map isn't updated for .svg, since the .svg mapping could come from one of the 'standard locations'. I'd rather add both, though. -- nosy: +georg.brandl title: add .svgz to mimetypes.suffix_map - add .svgz to mimetypes.suffix_map and .svg to types_map ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10730 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com