-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notepad3 exe opened in NP3 does not show uniform line endings... #1198
Comments
Maybe it makes sense to suppress consistency checks for |
I think, it makes certainly sense if the user try to open binaries files (.exe, .dll, etc...) 🤔 |
lol ok if that's what you guys want to do... |
Of cause, you will have different line-breaks in binary files. Please test beta version _5.19.512.1699_RC (see beta-channel access #1129). |
Binary files don't have line-endings. |
@RaiKoHoff ok... why is that? why can or do they have different line endings? @garoto why is that? |
Because once you compile source code it becomes CPU machine code, and a CPU only cares about the byte stream. The fact that you will find CR+LF or LF or CR only chars once you open a binary file on a text editor is expected and those do not represent your usual newline chars you see on your regular ASCII file, they are simply binary data translated to HEX code and then interpreted as is. Ever heard your computer speaker beeping once you dumped the contents of a binay file to your computer terminal/cmd.exe by mistake? You should use a HEX editor to peruse file data that is not pure ASCII. https://en.wikipedia.org/wiki/Newline |
Hello @RaiKoHoff , An example with: |
@garoto thx for the explanation.. |
Sorry for my "careless" answer ("line-breaks in binary files"). @garoto gave a good answer.
|
Something might help: zufuliu/notepad4@9e21ee1 and zufuliu/notepad4@f676095 The unreliable Style_MaybeBinaryFile() is not enabled. |
ok, I will test it when I get home from food shopping a little later.. |
Hello @MelchiorGaspar , |
While exploring files with unknown file extensions (exe, dll, or no extension at all)
I opened Notepad 3 exe in Notepad 3 and found that the line endings of the Notepad 3 exe are NOT UNIFORM... is this the way its supposed to be? I mean NP3 does run and exit fine... is this an issue?
The text was updated successfully, but these errors were encountered: