Hi Eros,
I think there is a tiny bug in thinAIR, which "corrupts" the files for use with git.
In fact, it does one redundant thing, which does not add value to script AND it confuses git.
What is happening?
thinBasic source files are saved in UTF8 encoding, with BOM at the beginning. That is perfectly fine and standard.
However, each time you save file, it terminates it with two $NUL characters - this is both not needed for UTF8 file, and it also makes git think the files is binary.
How to replicate
Please, once you have time, open ThinAIR, create new file, save the script.
Then open the script in HEX editor, for example PSPad in hex mode.
The last two chars will be 00 00.
How to fix
I would like thinAir to not save the two zero characters at the end.
Petr
Last edited by Petr Schreiber; 25-10-2019 at 21:58.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64
Bookmarks