Add sed to fix invalid UTF-8 character in usb.ids
authorMike Gilbert <floppym@gentoo.org>
Tue, 3 Oct 2017 19:43:26 +0000 (15:43 -0400)
committerMike Gilbert <floppym@gentoo.org>
Tue, 3 Oct 2017 20:01:43 +0000 (16:01 -0400)
Makefile

index 80c3e5e3f275b1fb021813d90fe1b866356eefa9..1d801ab1c2bbaa34a1969cfa2f06635d8c1a5774 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,9 @@ install: $(INSTALL_TARGETS-yes)
 fetch:
        $(Q)curl -z pci.ids -o pci.ids -R http://pci-ids.ucw.cz/v2.2/pci.ids
        $(Q)curl -z usb.ids -o usb.ids -R http://www.linux-usb.org/usb.ids
+       $(Q)sed -e 's/\x20\xB4/\x20\xC2\xB4/' usb.ids > usb.ids.temp
+       $(Q)touch -r usb.ids usb.ids.temp
+       $(Q)mv usb.ids.temp usb.ids
        $(Q)curl -z oui.txt -o oui.txt -R http://standards-oui.ieee.org/oui/oui.txt
        $(Q)curl -z ma-medium.txt -o ma-medium.txt -R http://standards-oui.ieee.org/oui28/mam.txt
        $(Q)curl -z ma-small.txt -o ma-small.txt -R http://standards-oui.ieee.org/oui36/oui36.txt