Skip to content

Cannot open files that contain ASCII NUL(0x00) correctly #725

@prclx323800

Description

@prclx323800

Hi there. Today I wrote a c++ program:

#include <cstdio>
int main() {
    freopen("test.out", "w", stdout);
    putchar('a'); putchar(0); putchar('b');
    return 0;
}

And then I try to open "test.out" with different applications.
Here is what Windows Notepad shows:
image
And then Windows Wordpad:
image
Next comes Emacs (for Windows):
image
However, Notepad++ 6.8.1 performs this:
image
I don't know what's wrong here. Hope it can be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions