Sather FAQ : Bugs, workarounds and planned features : Known bugs : "\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: | under linux undefined symbol __pthread_initial_thread_bos |