X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fdata-io%2Ffile-handle.q;h=313adc952b8bdcf14190c6186924bc0a43394897;hb=4170266027fefcef8f07b82b2b2a68ee3697779f;hp=26dfc97e0c920d1fb9d9d8f90ec9a5115f65a7c1;hpb=2814862a2c45a39f9822cf4c64ca3884822d064d;p=pspp diff --git a/src/language/data-io/file-handle.q b/src/language/data-io/file-handle.q index 26dfc97e0c..313adc952b 100644 --- a/src/language/data-io/file-handle.q +++ b/src/language/data-io/file-handle.q @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -47,6 +47,7 @@ lrecl=integer; tabwidth=integer; mode=mode:!character/binary/image/360; + ends=ends:lf/crlf; recform=recform:fixed/f/variable/v/spanned/vs; encoding=string. */ @@ -104,6 +105,10 @@ cmd_file_handle (struct lexer *lexer, struct dataset *ds) else msg (SE, _("%s must not be negative."), "TABWIDTH"); } + if (cmd.ends == FH_LF) + properties.line_ends = FH_END_LF; + else if (cmd.ends == FH_CRLF) + properties.line_ends = FH_END_CRLF; break; case FH_IMAGE: properties.mode = FH_MODE_FIXED;