25 lines
934 B
Diff
25 lines
934 B
Diff
diff -up psutils-1.23/configure.paperconf psutils-1.23/configure
|
|
--- psutils-1.23/configure.paperconf 2014-01-22 10:31:58.000000000 +0100
|
|
+++ psutils-1.23/configure 2014-03-04 16:19:48.053365284 +0100
|
|
@@ -15700,7 +15700,7 @@ fi
|
|
|
|
|
|
if test -z "$PAPER"; then
|
|
- PAPER=paper
|
|
+ PAPER=paperconf
|
|
fi
|
|
|
|
|
|
diff -up psutils-1.23/psutil.c.paperconf psutils-1.23/psutil.c
|
|
--- psutils-1.23/psutil.c.paperconf 2014-01-16 11:20:54.000000000 +0100
|
|
+++ psutils-1.23/psutil.c 2014-03-04 16:18:58.361057495 +0100
|
|
@@ -88,7 +88,7 @@ int paper_size(const char *paper_name, d
|
|
int res = 0;
|
|
if (paper_name == NULL) /* Use default paper name */
|
|
paper_name = pgetline(PAPER);
|
|
- if (paper_name && (cmd = xasprintf(PAPER " --unit=pt --size %s", paper_name)) && (l = pgetline(cmd)))
|
|
+ if (paper_name && (cmd = xasprintf(PAPER " -s %s", paper_name)) && (l = pgetline(cmd)))
|
|
res = sscanf(l, "%lg %lg", width, height);
|
|
free(l);
|
|
free(cmd);
|