This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Null Characters not printing on the console on Eclipse 3.3 on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Null Characters not printing on the console on Eclipse 3.3 on Linux" Watch "Null Characters not printing on the console on Eclipse 3.3 on Linux" New topic
Author

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

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37953
    
  22
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Null Characters not printing on the console on Eclipse 3.3 on Linux
 
Similar Threads
PrintWriter does not write. Why?
Assignment 1b
URGENT: Textured filled geometric shapes are not printed when the shapes are large
Stringbuilder insight
client->server : data flow prob.