summaryrefslogtreecommitdiff
blob: 94063c6670d20e322445717430d1d4cb1a0c803d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- docbook-utils-0.6.12/bin/jw.in.orig	2003-11-20 15:44:45.000000000 +0800
+++ docbook-utils-0.6.12/bin/jw.in	2003-11-20 15:45:05.000000000 +0800
@@ -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