Package: pcal
Version: 4.10.0-1
Severity: minor
Tags: patch
The -J option (print Julian days remaining in the year) outputs raw
PostScript in the printed calendar instead of the desired number, due
to a pair of unescaped backslashes. The attached patch produces the
desired output.
--
Nicholas Breen
[EMAIL PROTECTED]
diff -Nru pcal-4.10.0/src/writefil.c pcal-4.10.0-julianfix/src/writefil.c
--- pcal-4.10.0/src/writefil.c 2006-07-24 17:45:37.000000000 -0700
+++ pcal-4.10.0-julianfix/src/writefil.c 2006-11-28 14:14:59.000000000
-0800
@@ -1275,8 +1275,8 @@
printf(" /jday jdstart day add 1 sub def\n");
printf(" /str jday 3 string cvs def\n");
printf(" julian-dates true eq { %% print days
left in year?\n");
- printf(" /str str ( \050) strcat yearlen jday
sub 3 string cvs\n");
- printf(" strcat (\051) strcat def\n");
+ printf(" /str str ( \\050) strcat yearlen jday
sub 3 string cvs\n");
+ printf(" strcat (\\051) strcat def\n");
printf(" } if\n");
printf(" gsave\n");
printf(" str dup stringwidth pop 0 exch sub 0 rmoveto
show\n");