summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-20 18:27:29 +0000
committerKarl Berry <karl@freefriends.org>2008-09-20 18:27:29 +0000
commit019c2bee669bb556a2a1dae824548da20646fff9 (patch)
treec8ca10d32db54d106ee95c1565ed186e707b303d /Build/source/texk
parentd455ba9e671341c0d21b433ef73540e7655b20a6 (diff)
accept leading 0 in numbers for -O, etc.
git-svn-id: svn://tug.org/texlive/trunk@10660 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/dvipsk/ChangeLog5
-rw-r--r--Build/source/texk/dvipsk/papersiz.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index 1b8b55ffa84..779eb069d91 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-20 Karl Berry <karl@tug.org>
+
+ * papersiz.c (myatol): accept a leading zero, to match the doc.
+ From Akira. Report from John Frampton through tex-eplain.
+
2008-07-10 Karl Berry <karl@tug.org>
* dvips.h (BANNER): 5.97, 2008.
diff --git a/Build/source/texk/dvipsk/papersiz.c b/Build/source/texk/dvipsk/papersiz.c
index db77dcf5d44..1fde1f5f1a0 100644
--- a/Build/source/texk/dvipsk/papersiz.c
+++ b/Build/source/texk/dvipsk/papersiz.c
@@ -40,7 +40,9 @@ static long myatol P1C(char **, s)
error("! arithmetic overflow in parameter") ;
result = 10 * result + *p++ - '0' ;
}
- if (p == *s) {
+ if (p == *s && *p == '.') {
+ return 0;
+ } else if (p == *s) {
#ifdef KPATHSEA
error(concat3 ("expected number in ", *s, ", returning 10")) ;
#else