Fopen test for this issue https://github.com/crossbridge-community/crossbridge/issues/52#issuecomment-55293028