If you save this file in unicode big endian, compile it and run it, every ReadLine statement reads a single char. so Unicode bigEndian is not well handled by BlitzMax.
Sample code:
This is an alternative code that reproduces exactly the same bug:
NOTE: BlitzMax IDE defults saves to ANSI, so you will have to edit this in the note pad or on BLIde to see this bug in action. This bug applies to any Unicode Big Endian text file.
Sample code:
Local theFilename:String="test.bmx" Local mystream:TStream=OpenStream(theFilename) While Not Eof(mystream) Local theString:String=ReadLine(mystream) Print theString Wend
This is an alternative code that reproduces exactly the same bug:
Local theFilename:String="test.bmx" Local myBaseStream:TStream=OpenStream(theFilename) Local MyStream:TStream = BigEndianStream(myBaseStream) While not Eof(mystream) Local theString:String=ReadLine(mystream) Print theString Wend
NOTE: BlitzMax IDE defults saves to ANSI, so you will have to edit this in the note pad or on BLIde to see this bug in action. This bug applies to any Unicode Big Endian text file.