Apply patch from Werner Fink for CVE-2008-3863, CVE-2008-4306
[enscript.git] / src / ChangeLog
1 2009-12-27  Tim Retout  <tim@retout.co.uk>
2
3         Apply patch
4
5         * psgen.c: Use PATH_MAX 
6
7 2009-12-27  Tim Retout  <diocles@gnu.org>
8
9         Apply patch from Debian Security Team for CAN-2004-1184.
10
11         * gsint.h: Add shell_escape prototype.
12         * util.c (shell_escape): New function to escape filenames for
13         shell usage.
14         * util.c (is_open): Use shell_escape to expand command buffer.
15
16         * main.c (main): Use single quotes when building command string,
17         and use shell_escape to quote contents.
18
19         * util.c (escape_string): Check return code of xmalloc.
20
21         Apply patch from Werner Fink to address CVE-2008-3863,
22         CVE-2008-4306.
23
24         * psgen.c: Use PATH_MAX for various buffer sizes.
25         Replace several strcpy calls with memset and strncpy.
26
27 2009-03-28  Tim Retout  <diocles@gnu.org>
28
29         * psgen.c (recognize_eps_file): Remove ability to read EPS data
30         from a pipe, as this executes arbitrary commands.  It has been
31         disabled in most distros for five years anyway.  See
32         CAN-2004-1185.
33
34         * psgen.c (dump_ps_page_header): Use basename() and dirname() to
35         split path.  Fixes a buffer overflow - see CAN-2004-1186.
36
37 2009-01-25  Tim Retout  <diocles@gnu.org>
38
39         * main.c (main): Respect $HOME when searching for ~/.enscriptrc
40
41 2008-01-01  Tim Retout  <diocles@gnu.org>
42
43         * ChangeLog: Run M-x change-log-redate. Add copyright notice at end.
44
45         * main.c (usage): Use PACKAGE_BUGREPORT instead of hardcoding the bug
46         report address.
47
48         * main.c (main) <toc>: Remove an unnecessary fclose of the toc
49         temporary file, which was breaking the --toc option.
50
51 1999-09-17  Markku Rossi  <mtr@amme.ssh.fi>
52
53         * main.c (handle_options): New option --footer to set the page
54         footer string.
55         (main): Modified the config file reading to be more user-tolerant.
56         If the config file reading still fails, the enscript prints a
57         verbose error message describing the situation.  Enscript also
58         suggest some workarounds for the problem.  Hopefully this helps
59         users to overcome their problems concerning the installation of
60         the program.
61
62         * psgen.c (dump_ps_page_header): Added support for user supplied
63         footer strings.
64
65         * main.c: Removed the obsolete --list-options option.
66
67 1999-09-13  Markku Rossi  <mtr@amme.ssh.fi>
68
69         * main.c (handle_options): New option --extended-return-values to
70         enable the extended return values.
71
72 1999-09-07  Markku Rossi  <mtr@amme.ssh.fi>
73
74         * psgen.c (process_file): Added an argument `is_toc' to specify
75         whether the file to process is a table of contents file.
76
77 1999-08-26  Markku Rossi  <mtr@amme.ssh.fi>
78
79         * util.c (format_user_string): New escape `$p' for number of pages
80         processed so far.
81
82 1999-07-16  Markku Rossi  <mtr@amme.ssh.fi>
83
84         * Finished the static to dynamic memory buffer conversion.  Now
85         the enscript sources should not have any buffer overrun bugs.
86
87 1999-07-13  Markku Rossi  <mtr@amme.ssh.fi>
88
89         * Converted many static buffers to dynamically allocated buffers.
90         There are still more work in this area.
91
92 1999-07-09  Markku Rossi  <mtr@amme.ssh.fi>
93
94         * main.c: Started to fix some possible buffer overflows.  This
95         needs still more work.
96
97         * util.c: Implemented buffer_clear().
98
99 1999-07-08  Markku Rossi  <mtr@amme.ssh.fi>
100
101         * prt_lpr.c: Fixed to use the new memory buffer routines.
102
103         * util.c: Implemented new dynamic memory buffer handling routines
104         buffer_{{un,}init,alloc,free,append{,_len},ptr,len}().
105
106 1999-07-05  Markku Rossi  <mtr@amme.ssh.fi>
107
108         * main.c (handle_options): New option `--nup-columnwise' to layout
109         pages in the N-up printing columnwise.
110         (handle_options): New option `--swap-even-page-margins' to swap
111         left and right side page marginals for even numbered pages.
112
113 1999-03-29  Markku Rossi  <mtr@amme.ssh.fi>
114
115         * main.c (close_output_file): Check the return value of fclose on
116         a written file, and warn if necessary. (John Bley,
117         jbb6@acpub.duke.edu)
118
119 1999-03-12  Markku Rossi  <mtr@amme.ssh.fi>
120
121         * main.c: Renamed all `pretty-print' options to the corresponding
122         `highlight' ones.
123
124 1999-01-07  Markku Rossi  <mtr@amme.ssh.fi>
125
126         * util.c (parse_font_spec): Cleaned up the font specification
127         parsing.
128
129         * main.c (main): Fixed the non-installation runs to preserve the
130         PATH_SEPARATOR.
131         (handle_options): New options -3, -4, -5, -6, -7, -8, -9 to select
132         3-9 columns.
133
134 1998-12-23  Markku Rossi  <mtr@amme.ssh.fi>
135
136         * main.c (encodings): Added ISO-8859-{9,10} encodings.
137
138         * psgen.c (process_file): Swapped the order in which the line
139         numbers and line shading are printed.  Now the line numbers won't
140         be overwritten by the shading.
141
142 1998-12-07  Markku Rossi  <mtr@amme.ssh.fi>
143
144         * main.c (main): Added a xgettext `no-c-format' string.
145
146 1998-10-29  Markku Rossi  <mtr@ngs.fi>
147
148         * main.c (main): Fixed the `--help-pretty-print' option to work
149         with the new highlighting scheme.
150
151 1998-10-23  Markku Rossi  <mtr@ngs.fi>
152
153         * util.c (read_font_info): Added the `encoding' value to the font
154         info cache key.
155
156         * psgen.c (process_file): New special escape ^@bgcolor{} to set
157         the text background color.
158
159         * main.c: Changed enscript to use the new highlighting style.  All
160         states related options were changed.
161
162 1998-10-16  Markku Rossi  <mtr@ngs.fi>
163
164         * psgen.c: Added support for the user specified input encoding in
165         the ^@font{} escapes.
166
167         * util.c (parse_font_spec): Added support for the encoding
168         specification in the font spec.  All uses changed.
169
170         * gsint.h: New the EncodingRegistry to hold the known input
171         encodings.
172         Made the encodings a global variable.
173
174 1998-09-07  Markku Rossi  <mtr@ngs.fi>
175
176         * main.c (main): Fixed to honor the HOME environment variable.
177
178 1998-06-25  Markku Rossi  <mtr@ngs.fi>
179
180         * main.c (handle_options): New option `--rotate-even-pages' to
181         rotate each even-numbered page 180 degrees.
182         (usage): Moved `--word-wrap' to correct position.
183
184 1998-06-24  Markku Rossi  <mtr@ngs.fi>
185
186         * psgen.c (dump_ps_page_header): Fixed N-up printing in the
187         portrait mode.  It used to work, but I have broke it sometime in
188         the past.  Now it is fixed again.
189
190         * util.c (format_user_string): Fixed a bug from the `$n'
191         formatting.  We do not want to show the leading '/' in the result
192         string.
193
194 1998-06-23  Markku Rossi  <mtr@ngs.fi>
195
196         * main.c (encodings): Fixed a typo where the ISO-8859-7 was called
197         "creek" instead of "greek".
198
199         * psgen.c (dump_ps_header): Fixed to obey the `pslevel' option;
200         generate PostScript level 2 features only if the requested level
201         is 2 or above.
202
203         * main.c (handle_options): New option `--ps-level' to set the PS
204         level that enscript should use.
205         (main): Changed to pass the stdin to states as "-".
206
207         * util.c (read_config): New config file option `PostScriptLevel'
208         to set the PS level that enscript should use.
209
210 1998-06-22  Markku Rossi  <mtr@ngs.fi>
211
212         * psgen.c (dump_ps_page_header): Fixed a NULL-reference bug from
213         the `--header' handling.
214
215 1998-06-17  Markku Rossi  <mtr@ngs.fi>
216
217         * main.c (usage): Added a missing `\n\' sequence in the usage
218         text.
219
220 1998-06-11  Markku Rossi  <mtr@ngs.fi>
221
222         * main.c: Renamed ISO-8859-* encodings.
223
224 1998-05-26  Markku Rossi  <mtr@ngs.fi>
225
226         * util.c (format_user_string): Changed `$%' to format the page
227         number as `2B' in the slicing mode.
228
229         * main.c (main): Added double quotes around all file names in the
230         pipe command strings.  Now we can cooperate with file names with
231         spaces.
232
233 1998-05-18  Markku Rossi  <mtr@ngs.fi>
234
235         * main.c (handle_options): Changed the way how the escape
236         character code can be set.  Now we accept decimals, octals,
237         hexadecimals, and characters as-is.
238
239 1998-03-25  Markku Rossi  <mtr@ngs.fi>
240
241         * main.c: Added ISO-8859/7 (ISO latin7) encoding.
242
243 1998-03-09  Markku Rossi  <mtr@ngs.fi>
244
245         * main.c (handle_options): Option -C, --line-numbers takes now an
246         optional argument that specifies the number of the first line of
247         the input.
248
249 1998-02-23  Markku Rossi  <mtr@ngs.fi>
250
251         * psgen.c (process_file): Implemented horizontal columns.  The
252         option --h-column-height is used to set the column height and to
253         activate the horizontal columns.
254
255 1998-01-14  Markku Rossi  <mtr@ngs.fi>
256
257         * psgen.c (get_next_token): Implemented word wrapping to be used
258         instead of truncating `-c', `--truncate-lines' or character
259         wrapping.
260
261         Cleaned up statistics about truncated and wrapped lines.  Now it
262         obeys `--pages' and it works for both truncated and wrapped lines.
263
264 1998-01-13  Markku Rossi  <mtr@ngs.fi>
265
266         * util.c (is_ungetc): Implemented unlimited ungetc support to the
267         InputStream interface.  This is needed for the word wrap support.
268
269         * main.c: New options --nup-xpad and --nup-ypad to change the page
270         padding in N-up printing.
271         (main): Cleaned up N-up printing.
272
273 1998-01-12  Markku Rossi  <mtr@ngs.fi>
274
275         * gsint.h: Replaced all stdarg functions with corresponding
276         macros.  Changed all calls of `error', `fatal', `cfg_fatal' and
277         `message' to use the new macros.  Now there should be no more
278         errors on HP-SUX.
279
280 1998-01-02  Markku Rossi  <mtr@ngs.fi>
281
282         * main.c (main): Changed to lookup the enscript.st file from
283         enscript_library instead of using the hard-coded `PREFIX/share'
284         directory.  Now it obeys the ENSCRIPT_LIBRARY environment
285         variable.
286
287         * psgen.c (dump_ps_header): Generate PageSize page device setting
288         if it is requested.  This should make the printer to select the
289         correct paper tray automatically.
290
291         * main.c (handle_options): Changed option -l, --lineprinter to set
292         only --lines-per-page=66 and --no-header (removed --portrait and
293         --columns=1).  Now it conforms to Adobe's version.
294
295 1997-11-26  Markku Rossi  <mtr@ngs.fi>
296
297         * util.c (format_user_string): Fixed y2k bugs.
298
299 1997-09-30  Markku Rossi  <mtr@ngs.fi>
300
301         * main.c: Added ISO-8859/4 encoding, thanks to Ricardas Cepas
302         <rch@pub.osf.lt>.
303
304 1997-09-16  Markku Rossi  <mtr@ngs.fi>
305
306         * main.c (version): Updated to conform the latest GNU coding
307         standard.
308
309 1997-08-28  Markku Rossi  <mtr@ngs.fi>
310
311         * main.c: New option `--margins=LEFT:RIGHT:TOP:BOTTOM' to adjust
312         page marginals.
313
314 1997-08-11  Markku Rossi  <mtr@ngs.fi>
315
316         * psgen.c (divert): Changed to use tempnam() instead of tmpnam().
317         (get_next_token): Fixed tabulator character handling with variable
318         width fonts.  Now it really works; the left margins is really
319         pretty.
320
321 1997-07-03  Markku Rossi  <mtr@ngs.fi>
322
323         * psgen.c (read_special_escape): Implemented new `escape' special
324         escape to change the escape character.
325
326 1997-06-10  Markku Rossi  <mtr@ngs.fi>
327
328         * psgen.c: Optimized the size of the generated PostScript output.
329         (print_line_number): Fixed to print the line number with the
330         default body font, not with the currently active font which might
331         have been selected with font escapes.
332         (process_file): New special escape ^@bggray{} to set the text
333         background color.
334
335 1997-06-06  Markku Rossi  <mtr@ngs.fi>
336
337         * psgen.c: Fixed lineskip to work better when changing the font at
338         the beginning of the line.
339
340 1997-06-05  Markku Rossi  <mtr@ngs.fi>
341
342         * psgen.c (dump_empty_page): Fixed --file-align option to work
343         even if we cross the page boundary in N-up mode.
344
345 1997-05-28  Markku Rossi  <mtr@ngs.fi>
346
347         * main.c: New option --mark-wrapped-lines[=STYLE],
348         MarkWrappedLines to mark wrapped lines in the printout.
349
350 1997-05-22  Markku Rossi  <mtr@ngs.fi>
351
352         * main.c (main): Coded more information to the return value.
353
354 1997-03-19  Markku Rossi  <mtr@ngs.fi>
355
356         * main.c: New option -W, --language to specify the output
357         language.
358         New option --color to change the States color model from the
359         command line.
360         Made option -J to be an alias for -t, --title.
361         Make option -# to be an alias for -n, --copies.
362
363 1997-03-04  Markku Rossi  <mtr@ngs.fi>
364
365         * util.c (read_config): New config file option `StatesPath' to
366         specify the path for the states program.
367
368         * psgen.c: Fixed --file-align option which was broken with the
369         --nup option.
370
371 1997-03-03  Markku Rossi  <mtr@ngs.fi>
372
373         * psgen.c (dump_ps_page_header): Implemented user escapes for user
374         defined header strings.
375 \f
376 1997-02-26  Markku Rossi  <mtr@ngs.fi>
377
378         * Release enscript-1.5.0.
379
380 1997-02-21  Markku Rossi  <mtr@ngs.fi>
381
382         * util.c (read_font_info): Optimized AFM caching, this speeds up
383         enscript when using ^@font{} escapes a lot (-E).
384         (read_font_info): New input encoding asciidkno.
385         Renamed asciiscands to asciifise.
386
387 1997-02-18  Markku Rossi  <mtr@ngs.fi>
388
389         * main.c: New option -U NUM, --nup=NUM to specify how many logical
390         output pages are printed on each physical output page.
391
392 1997-02-06  Markku Rossi  <mtr@ngs.fi>
393
394         * util.c (parse_font_spec): Added a warning about negative font
395         sizes.
396
397 1997-02-03  Markku Rossi  <mtr@ngs.fi>
398
399         * main.c: New option `--help-pretty-print' to describe all
400         supported --pretty-print languages and file formats.
401
402 1997-01-24  Markku Rossi  <mtr@ngs.fi>
403
404         * main.c (main): Changed the output file creation to be
405         demand-driven.  If the input file (all input files) could not be
406         opened, enscript doesn't generate any output.  This is a good
407         thing.
408
409 1997-01-23  Markku Rossi  <mtr@ngs.fi>
410
411         * gsint.h: Changed the way how memmove() and memcpy() are defined
412         handled.  Not replacements can be found form compat lib so we do
413         not need any #define kludges.
414
415 1997-01-21  Markku Rossi  <mtr@ngs.fi>
416
417         * Makefile.am: Removed testcase.sh and moved all tests to ../tests
418         directory.
419
420         * util.c (read_config): Added states dependant config file
421         options: `StatesColorModel', `StatesConfigFile' and
422         `StatesHighlightLevel'.
423
424 1997-01-13  Markku Rossi  <mtr@ngs.fi>
425
426         * mkafmmap.c: Internationalized mkafmmap program.
427
428         * util.c (read_config): New option `OutputFirstLine' to set the
429         PostScript output's first line.
430
431 1996-11-28  Markku Rossi  <mtr@ngs.fi>
432
433         * main.c: New option `--E', `--pretty-print' to pretty print
434         source codes with `states'.
435
436         * psgen.c: New special escape ^@color{r g b}.
437
438         * util.c (format_user_string): Fixed bug from the `$n' escape
439         formatting.
440         (read_config): New option `NoJobHeaderSwitch' to specify the
441         spooler option to suppress the job header.
442
443 1996-11-05  Markku Rossi  <mtr@ngs.ngs.fi>
444
445         * psgen.c: fixed line number spacing bug which occured when using
446         line numbers with escapes.
447
448         * main.c: Added ISO-8859/5 (ISO latin5) encoding.
449
450 1996-09-07  Markku Rossi  <mtr@ngs.ngs.fi>
451
452         * main.c: Added Adobe's Standard cyrillic Font KOI8 encoding.
453
454 1996-08-30  Markku Rossi  <mtr@ngs.ngs.fi>
455
456         * util.c (parse_font_spec): Accept font point size in width/height
457         format.
458
459 1996-08-23  Markku Rossi  <mtr@ngs.ngs.fi>
460
461         * util.c (read_config): New config file option TOCFormat.
462
463         * psgen.c (process_file): Implemented user-definable format
464         strings for TOC entries.
465
466         * main.c: New option --slice to print vertical slices of input
467         files.
468
469 1996-08-05  Markku Rossi  <mtr@ngs.ngs.fi>
470
471         * main.c: New option --file-align=ALIGN to align separate input
472         files to even ALIGN page count.
473
474 1996-07-24  Markku Rossi  <mtr@ngs.ngs.fi>
475
476         * main.c: New option --toc to print the Table of Contents.
477 \f
478 1996-07-17  Markku Rossi  <mtr@ngs.ngs.fi>
479
480         * Release enscript-1.4.0.
481
482 1996-06-16  Markku Rossi  <mtr@ngs.ngs.fi>
483
484         * psgen.c (get_next_token): Fixed line number counting for
485         truncated lines.
486         (paste_epsf): Fixed a bug which printed EPS images to pages which
487         didn't belong to any of the requested page ranges.
488
489         * main.c (main): Added new configuration file:
490         SYSCONFDIR/enscriptsite.cfg.  This is intended for the
491         site-specific configuration whereas the global configuration file
492         SYSCONFDIR/enscript.cfg is for the global defaults.
493         Site-configuration file is never overwritten by installing a new
494         version of enscript so it is a safe place to store site-specific
495         media etc. definitions.
496
497 1996-06-13  Markku Rossi  <mtr@ngs.ngs.fi>
498
499         * main.c (handle_options): New option `--printer-options' to pass
500         extra options to the printer command.
501
502         * psgen.c (process_file): Count shade-box's position from the
503         font's FontBBox value.
504         (process_file): New escape `ps' to add raw PostScript code to the
505         output.
506
507         * main.c: New option --filter=STR, -I STR which sets the
508         input filter for source files.
509
510 1996-05-24  Markku Rossi  <mtr@ngs.fi>
511
512         * util.c (read_config): New config file option `FormFeedType' to
513         specify what to do when a formfeed character is encountered from
514         input.
515
516         * psgen.c (read_special_escape): Cleaned up special escapes parsing.
517         (read_special_escape): New escapes: `newpage', `setfilename' and
518         `setpagenumber'.
519
520         * util.c (read_config): New config option
521         `AcceptCompositeCharacters' to specify whatever we accept
522         PostScript font's composite characters or should we consider them
523         as non-existent.
524         (download_font): Added support for binary-coded .pfb fonts, thanks
525         to Bruce Albrecht <bruce@zuhause.MN.ORG>.
526
527         * main.c (long_options): Renamed option --pass-through-ps-files to
528         --pass-through.
529
530 1996-05-22  Markku Rossi  <mtr@ngs.fi>
531
532         * psgen.c (process_file): Fixed carriage return character
533         handling.
534
535 1996-05-10  Markku Rossi  <mtr@ngs.fi>
536
537         * psgen.c (read_special_escape): New special escape `shade' to
538         highlight regions of text.
539
540         * main.c (usage): Cleaned up --help messages.
541
542 1996-05-09  Markku Rossi  <mtr@ngs.fi>
543
544         * util.c (read_config): New configuration file option:
545         EscapeChar.
546
547 1996-05-07  Markku Rossi  <mtr@ngs.fi>
548
549         * util.c (read_config): New config file option `UnderlayStyle' to
550         specify the underlay printing style.
551
552         * main.c: New option: -j, --borders to print borders around
553         columns.
554         (long_options): New option --ul-style to specify the underlay
555         printing style.
556
557 1996-05-02  Markku Rossi  <mtr@ngs.fi>
558
559         * util.c (read_font_info): Added AFM cache to speedup font-escape
560         processing.
561
562         * psgen.c (print_line_number): Don't print line numbers for
563         wrapped lines.
564
565 1996-04-22  Markku Rossi  <mtr@ngs.fi>
566
567         * util.c (format_user_string): New directive `%H' for the document
568         title.
569
570         * main.c: Changed option -e, --escapes to take an optional
571         argument which specifies the escape character.
572
573 1996-04-01  Markku Rossi  <mtr@ngs.fi>
574
575         * psgen.c (process_file): Now ^@font{} escapes work over page
576         boundaries.
577
578 1996-03-27  Markku Rossi  <mtr@ngs.fi>
579
580         * main.c (main): New option -a, --pages to select which pages are
581         printed.
582
583 1996-03-26  Markku Rossi  <mtr@ngs.fi>
584
585         * util.c (format_user_string): New option: `$=' number of pages in
586         the current input file.
587
588         * psgen.c (process_file): Added diversions to count the total
589         pages within a file (%Format: $=).
590
591 1996-03-12  Markku Rossi  <mtr@ngs.fi>
592
593         * main.c (handle_options): Changed option -l, --lineprinter to
594         print 66 lines per page instead of 65 lines.
595
596         * util.c (read_config): New config file option: PagePrefeed.
597
598         * main.c (main): New options: -k, --page-prefeed, -K,
599         --no-page-prefeed.
600
601 1996-03-07  Markku Rossi  <mtr@ngs.fi>
602
603         * util.c (format_user_string): New escape: $(ENVVAR).
604
605 1996-03-05  Markku Rossi  <mtr@ngs.fi>
606
607         * util.c (read_config): New config file options: HighlightBars and
608         HighLightBarGray.
609
610         * main.c: New option: -H, --highlight-bars and
611         --highlight-bar-gray to control the highlight bar printing.
612
613 1996-03-01  Markku Rossi  <mtr@ngs.fi>
614
615         * main.c: New option: -h, --no-job-header to suppress the job
616         header page.
617         (main): Changed option --title to set the name of stdin.
618
619 1996-02-29  Markku Rossi  <mtr@ngs.fi>
620
621         * Added support for the automatic de-ANSI-fication.
622
623         * Renamed package to enscript.
624
625 1996-02-25  Markku Rossi  <mtr@ngs.fi>
626
627         * main.c (main): changed stdin's name to be an empty string
628         instead of "(stdin)".  This is how Adobe's enscript does it.
629
630 1996-02-23  Markku Rossi  <mtr@ngs.fi>
631
632         * main.c (main): Added environment variable GENSCRIPT_LIBRARY
633         which can be used to overwrite the build-in library path.
634
635         * psgen.c (read_special_escape): fixed a bug which caused pipes to
636         the EPS files to be closed with fclose().
637
638 1996-02-21  Markku Rossi  <mtr@ngs.fi>
639
640         * Makefile.in (exec_prefix): fixed to honor the value given by the
641         configure script.
642
643 1996-02-20  Markku Rossi  <mtr@ngs.fi>
644
645         * Added hp8 (HP Roman-8) encoding.
646 \f
647 1996-02-19  Markku Rossi  <mtr@ngs.fi>
648
649         * Release genscript-1.3.0.
650
651         * main.c (main): New config file option `AppendCtrlD' which can be
652         used to append the ^D character to the end of the output.
653
654         * psgen.c (do_pass_through_ps_file): added pass-through for the
655         PCL files.
656
657 1996-02-08  Markku Rossi  <mtr@ngs.fi>
658
659         * util.c (read_config): New config file option `Clean7Bit' to
660         specify how characters greater than 127 are handled.
661
662 1996-02-07  Markku Rossi  <mtr@ngs.fi>
663
664         * gsint.h: Implemented unit selection for the `--indent' option.
665
666 1996-01-30  Markku Rossi  <mtr@ngs.fi>
667
668         * main.c (main): Now genscript can be used even if it is not
669         installed.
670
671         * Makefile.in (check): new target
672
673 1996-01-25  Markku Rossi  <mtr@ngs.fi>
674
675         * util.c (paste_file): Implemented `%HeaderHeight' and
676         `%FooterHeight' directives.
677
678 1996-01-09  Markku Rossi  <mtr@ngs.fi>
679
680         * Finished Win-95/NT port.
681
682 1996-01-08  Markku Rossi  <mtr@ngs.fi>
683
684         * First Win-95/NT port with MSC 2.00.
685
686         * util.c (format_user_string): New options: %N and $%.
687
688 1996-01-05  Markku Rossi  <mtr@ngs.fi>
689
690         * psgen.c (dump_ps_header): Removed date and time ps-constants
691         which can now be formatted with the `%Format' directive:
692           - usadatestr  = %W
693           - eurdatestr  = %E
694           - findatestr  = %F
695           - timestr     = %C
696
697         (dump_ps_page_header): Removed fmodstr ps-constant which can now
698         be formatted with the `%Format' directive:
699           - fmodstr      = $D{%a %b %e %T %Y}
700
701         * util.c (format_user_string): Implemented `%Format' directive
702         which can be used to format user defined strings in fancy headers.
703
704 1996-01-04  Markku Rossi  <mtr@ngs.fi>
705
706         * main.c: Added pslatin1 encoding (PostScript interpreter's
707         ISOLatin1Encoding).
708
709 1996-01-03  Markku Rossi  <mtr@ngs.fi>
710
711         * Created a new Makefile to the compat subdirectory; now genscript
712         does not need a make with the VPATH feature.
713
714         * main.c (usage): Split usage string to smaller parts wich are
715         printed separately.
716
717 1996-01-02  Markku Rossi  <mtr@ngs.fi>
718
719         * main.c: New option: --non-printable-format, NonPrintableFormat.
720
721 1995-12-20  Markku Rossi  <mtr@ngs.fi>
722
723         * Added statistics about non-printable character codes.
724
725         * main.c: New option: -z, --no-formfeed to disable form feed
726         character interpretation.
727
728         * util.c (do_list_missing_characters): Changed output to go to
729         stderr instead of stdout.
730
731 1995-12-19  Markku Rossi  <mtr@ngs.fi>
732
733         * util.c (read_config): New config file options: UnderlayAngle and
734         UnderlayPosition.
735
736         * main.c (main): New options: --ul-angle and --ul-position.
737
738 1995-12-18  Markku Rossi  <mtr@ngs.fi>
739
740         * configure.in (PATH_SEPARATOR): Defined a new constant
741         PATH_SEPARATOR to specify the character which separates path
742         components.  Fixed also all uses.
743
744         * prt_lpr.c: Isolated printer related stuffs to a separate C file
745         to help micro ports.
746
747         * Makefile.in: Removed pre-defined eps images from the
748         distribution.
749
750         * util.c (parse_font_spec): Added support for the new
751         `name@ptsize' font specification.
752
753 1995-11-28  Markku Rossi  <mtr@ngs.fi>
754
755         * main.c (handle_options): Option -u, --underlay was changed to
756         take an optional argument.  If no argument is given, underlay is
757         not printed.
758
759         * util.c (read_config): New config file option `Underlay' to
760         specify the underlay text.
761
762         * Makefile.in: Fixed Makefile to obey the GNU Coding Standards.
763         Changed datadir from `prefix/lib' to `prefix/share'.
764
765 1995-11-27  Markku Rossi  <mtr@ngs.fi>
766
767         * util.c (read_config): New config file options: UnderlayFont and
768         UnderlayGray
769
770         * main.c: Renamed long options:
771           --output-file =>      --output
772           --queue       =>      --printer
773           --tab-size    =>      --tabsize
774
775           (long_options): made --silent to be an alias for --quiet
776
777         * utils.c: Renamed config file option `Queue' to `Printer'.
778
779 1995-11-08  Markku Rossi  <mtr@ngs.fi>
780
781         * Added latin3 encoding (from the latin3.txt file by Duncan C
782         Thomson).
783
784 1995-11-02  Markku Rossi  <mtr@ngs.fi>
785
786         * psgen.c: Fixed a bug which added document headers and trailers
787         to pass-through PostScript files.
788 \f
789 1995-10-31  Markku Rossi  <mtr@ngs.fi>
790
791         * Release genscript-1.2.20.
792
793 1995-10-27  Markku Rossi  <mtr@ngs.fi>
794
795         * Added option -C, --line-numbers.
796
797 1995-10-26  Markku Rossi  <mtr@ngs.fi>
798
799         * Added option -Z, --pass-through-ps-files.
800
801 1995-10-24  Markku Rossi  <mtr@ngs.fi>
802
803         * Cleaned up some HTML entity codes in encoding tables.
804
805 1995-10-18  Markku Rossi  <mtr@ngs.fi>
806
807         * Added latin2 encoding.
808
809 1995-10-10  Markku Rossi  <mtr@ngs.fi>
810
811         * main.c (main): changed fancy header's height from 40 to 36
812         points.
813
814 1995-10-05  Markku Rossi  <mtr@ngs.fi>
815
816         * New config file options: Queue and QueueParam.
817
818         * genscript.man: minor cleanups.
819 \f
820 1995-10-02  Markku Rossi  <mtr@ngs.fi>
821
822         * Release genscript-1.2.1.
823
824 1995-09-29  Markku Rossi  <mtr@ngs.fi>
825
826         * main.c: read default options from the GENSCRIPT (and ENSCRIPT)
827         environment variable
828
829 1995-09-26  Markku Rossi  <mtr@ngs.fi>
830
831         * font size and baselineskip can be given as a decimal number
832
833         * psgen.c: Fixed DSC comments, now generated output is DSC 3.0
834         conforming.
835
836 1995-09-21  Markku Rossi  <mtr@ngs.fi>
837
838         * Implemented .pf{a,b} file downloading.
839
840 1995-09-20  Markku Rossi  <mtr@ngs.fi>
841
842         * psgen.c (read_special_escape): new option 's' (scale) to specify
843         an explicit scale for an eps image.
844
845         * psgen.c: fixed epsf escape to start a new column if the
846         specified image does not fit to the current one.
847
848 1995-09-18  Markku Rossi  <mtr@ngs.fi>
849
850         * main.c: Fixed some typos.
851
852         * Added backspace handling.
853
854 1995-09-09  Markku Rossi  <mtr@ngs.fi>
855
856         * main.c (main): fixed typos that broke -o and -X options.
857 \f
858 1995-09-04  Markku Rossi  <mtr@ngs.fi>
859
860         * Release genscript-1.1.4.
861
862         * Added option --page-label-format.
863
864         * psgen.c (dump_ps_header): Added findatestr.
865         (paste_epsf): Fixed paste_epsf()'s EPS file recognization.
866
867 1995-08-30  Markku Rossi  <mtr@ngs.fi>
868
869         * Added options -u, --underlay, --ul-gray and --ul-font.
870
871         * psgen.c (read_float): now dimensions can be specified in
872         different units.
873
874 1995-08-29  Markku Rossi  <mtr@ngs.fi>
875
876         * Changed PostScript font's default encoding name from 'default'
877         to 'ps'.
878
879         * New config file option: DefaultOutputMethod.
880
881         * Added option --indent, -i.
882
883         * Cleaned up options in manual page, help and code.
884
885         * Replaced StringSet module with StringHash.
886
887         * psgen.c (paste_epsf): Now EPS images can be read from command's
888         standard output.
889
890 1995-08-24  Markku Rossi  <mtr@ngs.fi>
891
892         * vms.txt: Added VMS multinational input encoding.
893
894         * mac.txt: Cleaned up character table.
895
896         * Added options -S, --statusdict and -D, --setpagedevice.
897
898 1995-08-23  Markku Rossi  <mtr@ngs.fi>
899
900         * Improved configure to handle more non-ANSI features.
901
902         * Fixed a declaration bug from compat/strerror.c.
903
904         * psgen.c (read_float): replaced strtod() with atof().
905
906         * xalloc.c (xrealloc): do an explicit malloc() if old pointer is
907         NULL.
908
909         * ibmpc.txt: Cleaned up character table.
910
911         * psgen.c (get_next_token): control characters are now printed in
912         the escaped form.
913 \f
914 1995-08-21  Markku Rossi  <mtr@ngs.fi>
915
916         * Release genscript-1.0.1.
917
918 1995-08-17  Markku Rossi  <mtr@ngs.fi>
919
920         * Minor cleanups.
921
922 1995-08-15  Markku Rossi  <mtr@ngs.fi>
923
924         * Added option --baseline.
925
926         * Fixed epsf escape's options.
927
928 1995-08-14  Markku Rossi  <mtr@ngs.fi>
929
930         * Added support for AFM files.
931
932 1995-08-09  Markku Rossi  <mtr@ngs.fi>
933
934         * Added option --newline to select the newline character.
935
936         * Cleaned up character set tables.
937
938 1995-08-07  Markku Rossi  <mtr@ngs.fi>
939
940         * Added Mac input encoding.
941
942 1995-08-03  Markku Rossi  <mtr@ngs.fi>
943
944         * New special escapes: 'font' and 'comment'.
945
946         * New option --tab-size=NUM, -T NUM to define tab expansion size.
947
948         * General code and document cleanups.
949
950 1995-07-31  Markku Rossi  <mtr@ngs.fi>
951
952         * Added support for --copies option.  Now it really works.
953
954         * util.c (paste_file): parses '%%DocumentNeededResources:'
955         comments
956
957         * Added options --font and --header-font.
958
959 1995-07-27  Markku Rossi  <mtr@ngs.fi>
960
961         * psgen.c (paste_epsf): now eps files are also looked up from
962         libpath.
963         (read_special_escape): epsf: added option 'r'.
964
965 1995-07-26  Markku Rossi  <mtr@ngs.fi>
966
967         * psgen.c: added support for inlined EPS-files.
968
969 1995-07-25  Markku Rossi  <mtr@ngs.fi>
970
971         * Added IBM PC input encoding.
972
973
974 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2008 Free Software Foundation, Inc.
975
976 Copying and distribution of this file, with or without modification,
977 are permitted in any medium without royalty provided the copyright
978 notice and this notice are preserved.