byte read/writes in _O_TEXT mode and CR/LR handling. fput/getwc must read multibyte characters in _O_TEXT. Added test cases for _O_TEXT/_O_BINARY file handling and fgetws.
unit test for that.