* automake.mk: Add new file.
authorBen Pfaff <blp@gnu.org>
Fri, 9 Nov 2007 03:06:28 +0000 (03:06 +0000)
committerBen Pfaff <blp@gnu.org>
Fri, 9 Nov 2007 03:06:28 +0000 (03:06 +0000)
commitd0371553a98cd169353bf6d211e375e5ffc3a3bd
treecd9a5289b875ace5dda72b35153010caf41e357c
parent1881aaf56cd19765028c365e11ec0c97cc9d0320
* automake.mk: Add new file.

* formats/360.sh: New test.

* str.c (ds_read_stream): Change return value semantics to be more
useful.  Update all users.

* data-reader.c (struct dfm_reader): New member `block_left'.
(dfm_open_reader): Initialize block_left.  For FH_MODE_TEXT, open
the file in text mode.
(read_error): New function.
(partial_record): New function.
(try_to_read_fully): New function.
(enum descriptor_type): New enum.
(read_descriptor_word): New function.
(corrupt_size): New function.
(read_size): New function.
(read_file_record): Implement new modes.
(read_record): Now take care of tracking line numbers here.
(dfm_reader_get_legacy_encoding): New function.

* data-writer.c (dfm_put_record): Implement new modes.
(dfm_writer_get_legacy_encoding): New function.

* file-handle.q: Parse new formats.
(cmd_file_handle): Set up new formats.

* print.c (struct print_trns): New member `encoding'.
(internal_cmd_print): Set encoding.
(print_trns_proc): Recode output data if necessary.
(flush_records): Recode leader byte.

* data-in.c: Make formatted data parsing locale-independent.
(parse_number): Use c_strtod instead of strtod, to avoid
locale-specific behavior.
(parse_Z): Ditto.
28 files changed:
doc/data-io.texi
src/data/ChangeLog
src/data/data-in.c
src/data/data-in.h
src/data/data-out.c
src/data/data-out.h
src/data/file-handle-def.c
src/data/file-handle-def.h
src/language/data-io/ChangeLog
src/language/data-io/data-list.c
src/language/data-io/data-reader.c
src/language/data-io/data-reader.h
src/language/data-io/data-writer.c
src/language/data-io/data-writer.h
src/language/data-io/file-handle.q
src/language/data-io/print.c
src/language/expressions/operations.def
src/language/lexer/range-parser.c
src/language/xforms/recode.c
src/libpspp/ChangeLog
src/libpspp/str.c
src/libpspp/str.h
src/ui/gui/find-dialog.c
src/ui/gui/helper.c
src/ui/gui/psppire-case-file.c
tests/ChangeLog
tests/automake.mk
tests/formats/360.sh [new file with mode: 0755]