Fix UTF-8 encoding

Report to find out all non-UTF-8 files created by

cat extensions |xargs -I XXXX find . -name \*.XXXX |while read FILE ; do
    if ( iconv -f utf8 -t ucs2 $FILE >/dev/null 2>/dev/null ) ; then
        /bin/true
    else
        echo $FILE
    fi
done >>report

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>

[Daniel: git am failed for me, so I redid it.  The method listed in the
         commit message also failed, so I just used file/grep/iconv.  The
         results are the same though.]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Matěj Cepl
2011-06-17 15:26:17 +01:00
committed by Peter Hutterer
parent 2ee85d954c
commit b27d61e443
34 changed files with 48 additions and 48 deletions

View File

@@ -4,11 +4,11 @@
* Derived from ts.c by Keith Packard
* Derived from ps2.c by Jim Gettys
*
* Copyright <EFBFBD> 1999 Keith Packard
* Copyright <EFBFBD> 2000 Compaq Computer Corporation
* Copyright <EFBFBD> 2002 MontaVista Software Inc.
* Copyright <EFBFBD> 2005 OpenedHand Ltd.
* Copyright <EFBFBD> 2006 Nokia Corporation
* Copyright © 1999 Keith Packard
* Copyright © 2000 Compaq Computer Corporation
* Copyright © 2002 MontaVista Software Inc.
* Copyright © 2005 OpenedHand Ltd.
* Copyright © 2006 Nokia Corporation
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that