Don't try to write very long strings to portable files. The format
[pspp-builds.git] / src / data / ChangeLog
index 396ef1ca68fd0ab2f83d8d1a3053972260f2559c..602a68be8605ca4252359ca520dbfd71fa3774b1 100644 (file)
@@ -1,3 +1,15 @@
+2007-07-22  Ben Pfaff  <blp@gnu.org>
+
+       Don't try to write very long strings to portable files.  The
+       format does not support it.
+
+       * por-file-writer.c (MAX_POR_WIDTH): New macro.
+       (pfm_open_writer): Limit output width to MAX_POR_WIDTH.
+       (write_format): Add arg to take width to resize format to.
+       (write_value): Limit width of value written to MAX_POR_WIDTH.
+       (write_variables): Limit width of variable and its output formats
+       to MAX_POR_WIDTH.
+
 2007-07-22  Ben Pfaff  <blp@gnu.org>
 
        * sys-file-reader.c (read_variable_to_value_map): Use max_warnings