Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343422

Summary: [javadoc wizard] Generating Javadoc for CUs with UTF-8 names fails on Windows
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix none

Description Dani Megert CLA 2011-04-20 10:37:55 EDT
3.6.

Generating Javadoc for CUs with 'UTF-8' names fails on Windows (where 'Cp1252' is the default encoding).

1. start new workspace
2. import project form attachment 193329 [details]
3. set project encoding to UTF-8
4. try to export Javadoc
==> fails because the file names are mangled

There's no way to fix this by using VM arguments or extra Javadoc program arguments because the options file is created using the encoding with which the workspace was launched and the '-encoding' parameter is not used when reading the options file.
Comment 1 Dani Megert CLA 2011-04-20 10:44:27 EDT
If the encoding for the 'javadoc' command is specified using "-J-Dfile.encoding=MY_ENCODING" then we should use that to write the options file.
Comment 2 Dani Megert CLA 2011-04-20 10:46:07 EDT
Created attachment 193708 [details]
Fix
Comment 3 Dani Megert CLA 2011-04-20 10:46:33 EDT
Fixed in HEAD.
Available in builds >= N20110420-2000.