View Issue Details

IDProjectCategoryView StatusLast Update
0030772LazarusIDEpublic2020-10-17 17:04
ReporterBenito van der Zander Assigned ToJuha Manninen  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0030772: Console output window irritated by invalid characters
DescriptionIf a program prints invalid characters like raise exception.create(#$FC) or writeln(#0#1#2#3), the output window does not just not show the character, but the entire line containing it is missing. Sometimes even the entire window stays blank.
Then you think the program failed to print anything, when it actually had memory corruption or output with an invalid encoding.

An actual console shows � or ? for such characters.
TagsNo tags attached.
Fixed in Revision
WidgetsetGTK 2
Attached Files


Bart Broersma

2016-10-22 19:01

developer   ~0095265

> writeln(#0#1#2#3)
You know that according to the underlying WS the string ends with the Chr(0), so it will stop displaying anything after that.

Benito van der Zander

2018-05-04 11:52


emptymemo (200 bytes)   
emptymemo (200 bytes)   

Benito van der Zander

2018-05-04 11:56

reporter   ~0108137

This is more serious than I thought.

It does not just affect the console window, but all memos on gtk2. For example Memo.lines.loadfromfile('emptymemo') with the attached file results in an empty memo, even though the file is non empty

Bart Broersma

2018-05-04 16:56

developer   ~0108139

And a native GTK app (like gedit) can load and display that file correctly?

Benito van der Zander

2020-10-17 13:09

reporter   ~0126363

This has been solved with the new output window in Lazarus 2

Juha Manninen

2020-10-17 17:04

developer   ~0126371

Ok, resolving.

Issue History

Date Modified Username Field Change
2016-10-22 14:46 Benito van der Zander New Issue
2016-10-22 19:01 Bart Broersma Note Added: 0095265
2018-05-04 11:52 Benito van der Zander File Added: emptymemo
2018-05-04 11:56 Benito van der Zander Note Added: 0108137
2018-05-04 16:56 Bart Broersma Note Added: 0108139
2020-10-17 13:09 Benito van der Zander Note Added: 0126363
2020-10-17 17:04 Juha Manninen Assigned To => Juha Manninen
2020-10-17 17:04 Juha Manninen Status new => resolved
2020-10-17 17:04 Juha Manninen Resolution open => fixed
2020-10-17 17:04 Juha Manninen LazTarget => -
2020-10-17 17:04 Juha Manninen Widgetset GTK 2 => GTK 2
2020-10-17 17:04 Juha Manninen Note Added: 0126371