aspose 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
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: 38756
    
  23
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