From: Mike Gilbert Date: Tue, 3 Oct 2017 19:43:26 +0000 (-0400) Subject: Add sed to fix invalid UTF-8 character in usb.ids X-Git-Tag: hwids-20171003~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9195c4e03ed12863fec68f512c74db825dfc8f2d;p=oweals%2Fhwids.git Add sed to fix invalid UTF-8 character in usb.ids --- diff --git a/Makefile b/Makefile index 80c3e5e..1d801ab 100644 --- 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