Sha256: 1c06b4b849fc00b4b104ad08cf736082e031c9a0a7c4638700dde614c62359ad
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 Bytes
Contents
#! /bin/sh # # Very simple script to detect and convert files that we want to re-encode to UTF8 git ls-tree -r --name-only HEAD | \ while read F; do charset=`file -bi "$F" | sed -e 's|.*charset=||'` if [ "$charset" != "utf-8" -a "$charset" != "binary" -a "$charset" != "us-ascii" ]; then iconv -f ISO-8859-1 -t UTF8 < "$F" > "$F.utf8" && \ ( cmp -s "$F" "$F.utf8" || \ ( echo "$F" mv "$F" "$F.iso-8859-1" mv "$F.utf8" "$F" ) ) fi done
Version data entries
5 entries across 4 versions & 1 rubygems