Missing newline in PrintMiscActorInfo()

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.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Missing newline in PrintMiscActorInfo()

Re: Missing newline in PrintMiscActorInfo()

by Rachael » Mon Jun 24, 2019 2:58 am

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.

Re: Missing newline in PrintMiscActorInfo()

by Graf Zahl » Mon Jun 24, 2019 2:16 am

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()

by Rachael » Mon Jun 24, 2019 1:31 am

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()

by dpJudas » Mon Jun 24, 2019 1:14 am

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()

by Rachael » Mon Jun 24, 2019 12:53 am

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()

by Graf Zahl » Sun Jun 23, 2019 9:09 pm

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()

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

Missing newline in PrintMiscActorInfo()

by Blue Shadow » Sun Jun 23, 2019 5:24 pm

A "\n" is missing in this line in PrintMiscActorInfo().

Top