@Andreas_Rozek, what was the output of your test program?
How did you compare character by character?
My only explanation would be that the data read is not a string but concatenated to an empty string .toString() is applied and makes it what you expect... weird and not really reasonable... but JS is known for doing (sometimes) some conversion...
That's what looked so weird: "!==" was true (mind the extra "=" which means "without any conversion"), but when comparing lengths and character codes, everything was equal.
Thus, I could
© Espruino, powered by microcosm.
Report a problem