Bug #21128. Reviewed by John Darrington.
authorBen Pfaff <blp@gnu.org>
Sun, 23 Sep 2007 05:59:01 +0000 (05:59 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 23 Sep 2007 05:59:01 +0000 (05:59 +0000)
commit873165af1d9ae450483816b892aa17afd669a7c0
tree58381eb3496f83fe07fc0589b3925a239c84568f
parent5c6905f443fab1025db254154790648ca95cf310
Bug #21128.  Reviewed by John Darrington.

* output/paper-size.sh: New test.

* main.c (i18_init): Set up LC_PAPER locale, if available.  Don't
bother with LC_MONETARY locale, since we don't use it anywhere.

* output.c (TWO_CHARS macro): Removed.
(outp_evaluate_dimension): Changed interface, rewritten.  Updated
all callers.
(internal_get_paper_size): Removed.
(parse_unit): New function.
(parse_paper_size): New function.
(outp_get_paper_size): Tweaked interface, rewritten.
(get_standard_paper_size): New function.
(read_paper_conf): New function.
(get_default_paper_size): New function.

* postscript.c (ps_open_driver): Use system default paper size as
default paper, instead of hard-coding US letter.
(handle_option): Allow outp_evaluate_dimension to supply error
message instead of generating it here.

* automake.mk: Add new file.

* paper-size.c: New file.

* command.def: Add DEBUG PAPER SIZE command.

* papersize: Removed.

* automake.mk (dist_pkgsysconf_DATA): Remove papersize.

* acinclude.m4 (PSPP_LC_PAPER): New macro.

* configure.ac: Use PSPP_LC_PAPER.
22 files changed:
ChangeLog
NEWS
acinclude.m4
config/ChangeLog
config/automake.mk
config/papersize [deleted file]
configure.ac
doc/configuring.texi
src/language/ChangeLog
src/language/command.def
src/language/tests/ChangeLog
src/language/tests/automake.mk
src/language/tests/paper-size.c [new file with mode: 0644]
src/output/ChangeLog
src/output/output.c
src/output/output.h
src/output/postscript.c
src/ui/terminal/ChangeLog
src/ui/terminal/main.c
tests/ChangeLog
tests/automake.mk
tests/output/paper-size.sh [new file with mode: 0755]