File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 36453
    
  15
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null Characters not printing on the console on Eclipse 3.3 on Linux
 
Similar Threads
URGENT: Textured filled geometric shapes are not printed when the shapes are large
client->server : data flow prob.
Assignment 1b
Stringbuilder insight
PrintWriter does not write. Why?