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