Summary: | text/x-ms-regedit | ||
---|---|---|---|
Product: | shared-mime-info | Reporter: | Robert Millan <rmh> |
Component: | freedesktop.org.xml | Assignee: | Jonathan Blandford <jrb> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | toscano.pino |
Version: | unspecified | Keywords: | patch |
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch for text/x-ms-regedit
new patch with WinXP support test case (generated with Windows XP) |
Description
Robert Millan
2007-03-15 14:02:44 UTC
Created attachment 9170 [details] [review] patch for text/x-ms-regedit Created attachment 9171 [details] [review] new patch with WinXP support New patch, with support for WinXP versions. I would change the description is something a bit more meaningful, like: "Windows registry file" I removed the "binary" bits from Windows XP (I couldn't find any mentions of it, and binary data means it can't descend from text/plain), and added "Windows Registry Editor Version 5.00" as one of the magics (see http://www.ss64.com/nt/regedit.html). I also change the name to "Windows Registry extract". * freedesktop.org.xml.in: Patch from Robert Millan <rmh@aybabtu.com> to add Microsoft Registry mime-types, for use in Wine (Closes: #10312) * tests/list: * tests/registry.reg: * tests/registry-nt.reg: Add test files for the Windows Registry mime-type Hi! The binary data was not gratuitous. Windows does actually store files this way. The first two bytes are a marker indicating the file is utf-16, and the rest is encoded in utf-16 as well. As long as the matching algorithm keeps working, I guess there's no problem though. But I seriously doubt it does. So, are you COMPLETELY sure it works? (In reply to comment #5) > Hi! > > The binary data was not gratuitous. Windows does actually store files this > way. The first two bytes are a marker indicating the file is utf-16, and the > rest is encoded in utf-16 as well. > > As long as the matching algorithm keeps working, I guess there's no problem > though. But I seriously doubt it does. > > So, are you COMPLETELY sure it works? Completely sure what works? I took example files from the internet, and they seem to work. Give me some documentation and example files that don't and we can work on adding support for them. I can't make files out of thin air... Created attachment 14484 [details]
test case (generated with Windows XP)
I'm sorry, I should have really included a test case from the beginning.
Here you are now.
Thanks, fixed in CVS. * freedesktop.org.xml.in: * tests/registry.reg: Detect registry files when they're UTF-16 encoded as exported by regedit on Windows XP, magic provided by Robert Millan <rmh@aybabtu.com> Thanks! |
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.