Skip to content

Strange behaviors when writing to stdout #3

@ClementDreptin

Description

@ClementDreptin

Hi,

I'm pretty sure I found 2 bugs:

  • printf calls seem to only print the final line of a buffer.
  • std::cout seems to completely skip new line characters.

For example, the following code:

const char content[] = "first line\nsecond line\nthird line\n";
const char finalLine[] = "final line\n";

printf(content);
printf(finalLine);

outputs

third line
final line

The first 2 lines of the content buffer are never printed.

And the following code:

const char content[] = "first line\nsecond line\nthird line\n";
const char finalLine[] = "final line\n";

std::cout << content;
std::cout << finalLine;

outputs

first linesecond linethird linefinal line

The first 2 lines are printed but the new line characters themselves are not.

I tested both the WinForms and ImGui versions and the bugs seem to happen in both.

PS: Thank you so much for this project! I only have an RGH and until recently I was stuck using Xbox Watson, having a debugger that doesn't crash when the console does has been a life saver!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions