Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362957 - The Console does not display '\u0000' correctly
Summary: The Console does not display '\u0000' correctly
Status: CLOSED DUPLICATE of bug 306131
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 21:57 EDT by Ziyao Wei CLA
Modified: 2020-05-24 07:41 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ziyao Wei CLA 2011-11-04 21:57:36 EDT
Build Identifier: I20110613-1736

In the version of Eclipse I am using, a string such as "!!^@!" would be shown in the console as "!!" instead of "!!!", which is the output in the Linux (Ubuntu 10.04) console.

For full detail, I've asked this problem on StackOverflow.com (link here):

http://stackoverflow.com/questions/8017465/why-printing-0-will-nullify-the-rest-of-the-line-in-java

Reproducible: Always

Steps to Reproduce:
1. Write such a line in the main method in Java: System.out.print("!\0!");
2. Execute it.
3.
Comment 1 Michael Rennie CLA 2011-11-09 13:11:40 EST
(In reply to comment #0)
> Steps to Reproduce:
> 1. Write such a line in the main method in Java: System.out.print("!\0!");
> 2. Execute it.

This works for me, I get the following output in the console:

! !

Also using the example snippet from stackoverflow works for me, and I get the following output:

!! !
!
Comment 2 Lars Vogel CLA 2019-11-14 03:31:47 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.
Comment 3 Paul Pazderski CLA 2020-05-24 07:41:57 EDT

*** This bug has been marked as a duplicate of bug 306131 ***