This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164427 - Incorect Java compilation of UTF-8 sources
Summary: Incorect Java compilation of UTF-8 sources
Status: RESOLVED DUPLICATE of bug 163697
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 23:30 UTC by ecastro
Modified: 2009-05-11 11:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ecastro 2009-05-04 23:30:24 UTC
Maybe related to issue 163006  	

On a Windows using CP1252 as ANSI encoding,
Create a Java project
In the main class, put the follwing main method:

    public static void main(String[] args) {
        System.out.println("héllò");
    }

Do note the 'é' and 'ò'.
It is not necessary to save the file 
Just press the 'Run' green right arrow to launch the project.
You should see the following in the console
  run:
  héllò
  BUILD SUCCESSFUL (total time: 0 seconds)

Now, make the editor with main class to lose the focus 
(click on another windows)
Repress on the 'Run' green right arrow all return in order 
(i.e. the console with the following)
  run:
  héllò
  BUILD SUCCESSFUL (total time: 0 seconds)

To reproduce again, just add a space somewhere in the main class
and repress on the 'Run' green right arrow.
Comment 1 ecastro 2009-05-04 23:35:44 UTC
Duplicated of #163697 ?
Comment 2 Jan Jancura 2009-05-11 11:39:58 UTC

*** This issue has been marked as a duplicate of 163697 ***