Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Null Characters not printing on the console on Eclipse 3.3 on Linux

 
Campbell Ritchie
Sheriff
Posts: 48407
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anybody come across this before? It only seems to happen on Eclipse on Linux, not on Windows, nor a shell on Linux nor NetBeans on Linux.

I copied a little class from Bruce Eckels, Thinking in Java 4/e, page 956-7, which prints out bytes in different formats; at one stage it prints out two "zero" bytes as a char which ought to be the null character '\0', followed by 97 or 0x61 which should be the letter 'a'. But no 'a' appeared. I have tried it with a couple of other test apps, and it appears that printing the '\0' character on the console on Ec3.3 on Linux causes the remainder of the line to vanish. Then the next line prints normally.

Has anybody else see this behaviour? I have reported it as a potential bug.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic