From c62c9899ebc0fe805caa3d0d0f4b936debc7d62c Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 4 Jan 2016 20:38:49 -0800 Subject: [PATCH] Hack: use sed to strip utf-8 marker from start of file. --- xwords4/dawg/French/Makefile.ODS7 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xwords4/dawg/French/Makefile.ODS7 b/xwords4/dawg/French/Makefile.ODS7 index a5811b078..12a665693 100644 --- a/xwords4/dawg/French/Makefile.ODS7 +++ b/xwords4/dawg/French/Makefile.ODS7 @@ -1,5 +1,6 @@ # -*-mode: Makefile -*- -# Copyright 2002 by Eric House (xwords@eehouse.org). All rights reserved. +# Copyright 2016 by Eric House (xwords@eehouse.org). All rights +# reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -22,8 +23,10 @@ TARGET_TYPE ?= WINCE include ../Makefile.langcommon +# use sed to strip the bogus utf8 identifier. There must be a better +# way, e.g. with iconv. $(XWLANG)Main.dict.gz: $(XWDICTPATH)/French/ods7.txt - cat $< | tr -d '\r' | tr a-z A-Z | grep '^[A-Z]*$$' | gzip >$@ + cat $< | tr -d '\r' | sed 's,\xEF\xBB\xBF,,' | tr a-z A-Z | gzip >$@ # Everything but creating of the Main.dict file is inherited from the # "parent" Makefile.langcommon in the parent directory.