Bug 94650 DBCS3.1: JUnit example build error
Driver : Eclipse 3.1 I20050509-2010 Linux GTK, and example JVM : IBM 1.4.2 SR1a Platform : RHEL 4 WS ja_JP.UTF-8 locale Steps 1. File > New > Example.., select Example Project -JUnit, click Next 2. use default project name "JUnit", click Finish Result following error is shown at Problems view The project was not built since the source file /JUnit/junit/framework/TestSuite.java could not be read I tried to open it and got This file is unreadable using the "UTF-8" character encoding
org.eclipse.jdt.ui.examples.projects/examples/org/eclipse/jdt/internal/ui/exampleprojects/ExampleProjectCreationOperation.java
for (int i= 0; i < nImports; i++) {
			doImports(proj, imports[i], new SubProgressMonitor(monitor, 1));
		}
		
		String open= desc.getAttribute("open"); 
		if (open != null && open.length() > 0) {
			IResource fileToOpen= proj.findMember(new Path(open));
			if (fileToOpen != null) {
				fElementToOpen= fileToOpen;
			}
		}		
		
	}
	
	private IProject configNewProject(IWorkspaceRoot root, String name, String[] natureIds, IProject[] referencedProjects, IProgressMonitor monitor) throws InvocationTargetException {
		try {
			IProject project= root.getProject(name);
			if (!project.exists()) {
				project.create(null);
			}
			if (!project.isOpen()) {
				project.open(null);
			}
			IProjectDescription desc= project.getDescription();
			desc.setLocation(null);
			desc.setNatureIds(natureIds);
			desc.setReferencedProjects(referencedProjects);
			
			project.setDescription(desc, new SubProgressMonitor(monitor, 1));