[Image: GNU Sather logo]
(Answer) (Category) Sather FAQ : (Category) Bugs, workarounds and planned features : (Category) Known bugs : (Answer) "\n" interpretation on Windows
Sather compiled with Cygwin running on Windows has this behavior:

file ::= FILE::open_for_write("temp.txt") ;
file := file+"\n";
file.close ;

gives you a file of length 2 containing <cr><lf>,  whilst -

file ::= BFILE::open_for_write("temp.txt") ;
file := file+"\n";
file.close ;

gives you a file of length 1.
However, if you really need to use FILE instead of BFILE you can use
"\10" instead
of "\n".  Eg;

file ::= FILE::open_for_write("temp.txt") ;
file := file+"\10";
file.close ;
Previous: (Answer) under linux undefined symbol __pthread_initial_thread_bos

Copyright (C) 2000 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.