--- jw 2003-11-19 23:23:55.000000000 +0100 +++ jw-patched 2003-11-19 23:25:18.000000000 +0100 @@ -360,7 +360,7 @@ papersize= if [ -x /usr/bin/locale ] then - h=$(/usr/bin/locale LC_PAPER 2>/dev/null | head -1) + h=$(/usr/bin/locale LC_PAPER 2>/dev/null | head -n 1) if [ "$h" = 297 ] then papersize=A4