#!/bin/sh
-# Copyright (C) 2011-2013 Simon Ruderich
+# Copyright (C) 2011-2014 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+set -eu
+
case "$1" in
# Color diff files.
*.diff | *.patch)
colordiff <"$1"
;;
+
+ *.nfo)
+ iconv -f latin1 -t utf-8 <"$1"
+ ;;
+
*)
# Display directory contents.
if test -d "$1"; then