Missing newline in PrintMiscActorInfo()
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
- Posts: 4949
- Joined: Sun Nov 14, 2010 12:59 am
Missing newline in PrintMiscActorInfo()
A "\n" is missing in this line in PrintMiscActorInfo().
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Missing newline in PrintMiscActorInfo()
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()
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.
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()
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()
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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Missing newline in PrintMiscActorInfo()
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.
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()
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.
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.