|
Lines 565-573
Link Here
|
| 565 |
/* Open the destination */ |
565 |
/* Open the destination */ |
| 566 |
a2ps_open_output_stream (job); |
566 |
a2ps_open_output_stream (job); |
| 567 |
|
567 |
|
|
|
568 |
/* Make sure dot will be used to separate fractional part of numbers. |
| 569 |
* In some other locales (polish, for example) comma is used, but this |
| 570 |
* is violation of PostScript. */ |
| 571 |
setlocale(LC_NUMERIC, "C"); |
| 572 |
|
| 568 |
/* Dump the PostScript and close */ |
573 |
/* Dump the PostScript and close */ |
| 569 |
output_dump (job->divertion, job->output_stream->fp); |
574 |
output_dump (job->divertion, job->output_stream->fp); |
| 570 |
|
575 |
|
|
|
576 |
/* Restore locale */ |
| 577 |
setlocale(LC_NUMERIC, ""); |
| 578 |
|
| 571 |
/* We have to close stdout to avoid hanging up of pipes */ |
579 |
/* We have to close stdout to avoid hanging up of pipes */ |
| 572 |
/* Note: some day, I should learn about the signals, and be able |
580 |
/* Note: some day, I should learn about the signals, and be able |
| 573 |
* either to catch or to ignore the SIG_PIPE that happens |
581 |
* either to catch or to ignore the SIG_PIPE that happens |