Page 1 of 1

Missing newline in PrintMiscActorInfo()

Posted: Sun Jun 23, 2019 5:24 pm
by Blue Shadow
A "\n" is missing in this line in PrintMiscActorInfo().

Re: Missing newline in PrintMiscActorInfo()

Posted: Sun Jun 23, 2019 7:53 pm
by Rachael

Re: Missing newline in PrintMiscActorInfo()

Posted: Sun Jun 23, 2019 9:09 pm
by Graf Zahl
What editor did you use? This added an UTF-8 BOM marker to the file which some compilers do not like.

Re: Missing newline in PrintMiscActorInfo()

Posted: Mon Jun 24, 2019 12:53 am
by Rachael
Ugh. Notepad.

But... what are the Unicode characters in this file doing, then? It doesn't do that unless they are there.

EDIT: Nevermind, saved it as an ANSI file with the plan to do a 'git diff' on it to see what changed - and nothing did. No idea what Microsoft did to this thing, but it should not be adding BOMs to files randomly like that.

Re: Missing newline in PrintMiscActorInfo()

Posted: Mon Jun 24, 2019 1:14 am
by dpJudas
Notepad has always added BOM to unicode files. It is essentially how it knows a file is unicode vs ansi. It was one of those early ideas in the unicode standard that went out of favor, and in typical Microsoft fashion once something has been decided it can't be changed until it should have been done over 10 years ago. :)

Re: Missing newline in PrintMiscActorInfo()

Posted: Mon Jun 24, 2019 1:31 am
by Rachael
It only did that when Unicode characters were present though - and in earlier versions (such as what's in Windows 8) it would give you a warning, as well. In the recent versions of Windows 10 it does not even bother with the warning anymore.

Re: Missing newline in PrintMiscActorInfo()

Posted: Mon Jun 24, 2019 2:16 am
by Graf Zahl
Lesson of the day: Do not use Notepad! Do yourself a favor and install something decent, like Notepad++.

Yes, Microsoft seems to have had issues with UTF-8 detection in the past, the first iteration in Visual Studio was also totally unusable and AFAIK only fixed after having received massive criticism.

Re: Missing newline in PrintMiscActorInfo()

Posted: Mon Jun 24, 2019 2:58 am
by Rachael
I have Notepad2 thanks to TortoiseGit, but it's a lot easier to just type "notepad" on the command line than "notepad2". (I use the command line almost exclusively, nearly 99% of the time)

And I just haven't had much reason yet to create a redirection program that allows me to automatically switch to it when I type notepad.