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

Bug 341438

Summary: Character encoding problems on ubuntu 10.10 linux
Product: [Technology] STEM Reporter: Jan Pieper <jhpieper>
Component: CoreAssignee: Matthew Davis <mattadav>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mattadav, sedlund
Version: unspecified   
Target Milestone: 1.1.2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
utf-8 conversion of several files
sedlund: iplog+
Full utf-8 files as per Matt's request sedlund: iplog+

Description Jan Pieper CLA 2011-03-30 20:21:04 EDT
Created attachment 192241 [details]
utf-8 conversion of several files

I was unable to build STEM on ubuntu because several files were not UTF-8 encoded and thus could not be read by eclipse. The error message in eclipse reads: 'The project was not built since the source file <PATH> could not be read'

I used iconv and manual editing to convert these files to UTF-8 in the attached patch.

Here's the list of affected files:
/org.eclipse.stem.graphgenerators/src/org/eclipse/stem/graphgenerators/impl/PajekNetGraphGeneratorImpl.java
/org.eclipse.stem.graphgenerators/src/org/eclipse/stem/graphgenerators/provider/PajekNetGraphGeneratorItemProvider.java
/org.eclipse.stem.graphgenerators/src/org/eclipse/stem/graphgenerators/PajekNetGraphGenerator.java
/org.eclipse.stem.populationmodels/src/org/eclipse/stem/populationmodels/standard/impl/MosquitoPopulationModelImpl.java
/org.eclipse.stem.ui.grapheditor/src/org/eclipse/stem/ui/grapheditor/GraphCanvas.java
/org.eclipse.stem.ui.grapheditor/src/org/eclipse/stem/ui/grapheditor/ComboListenerType.java
/org.eclipse.stem.ui.grapheditor/src/org/eclipse/stem/ui/grapheditor/ComboSelectionListenerValue.java
Comment 1 Matthew Davis CLA 2011-03-30 20:52:31 EDT
Excellent catch, Jan.

Assigning to myself for review.  For now, can you please confirm you were the sole author of this patch.  As an IBM employee, you can contribute under existing agreements.
Comment 2 Matthew Davis CLA 2011-03-31 10:57:19 EDT
Jan, can you attach a zip/tar of the full, converted files?  Eclipse is having trouble applying the patch - probably due to its nature.

The files changed appear to be:
org.eclipse.stem.populationmodels:src/org/eclipse/stem/populationmodels/standard/impl/MosquitoPopulationModelImpl.java
org.eclipse.stem.graphgenerators:src/org/eclipse/stem/graphgenerators/PajekNetGraphGenerator.java
org.eclipse.stem.ui.grapheditor:src/org/eclipse/stem/graphgenerators/provider/PajekNetGraphGeneratorItemProvider.java
org.eclipse.stem.ui.grapheditor:src/org/eclipse/stem/graphgenerators/impl/PajekNetGraphGeneratorImpl.java
org.eclipse.stem.ui.grapheditor:src/org/eclipse/stem/ui/grapheditor/ComboSelectionListenerValue.java
org.eclipse.stem.ui.grapheditor:src/org/eclipse/stem/ui/grapheditor/GraphCanvas.java
org.eclipse.stem.ui.grapheditor:src/org/eclipse/stem/ui/grapheditor/ComboListenerType.java
Comment 3 Jan Pieper CLA 2011-03-31 12:42:45 EDT
Created attachment 192302 [details]
Full utf-8 files as per Matt's request

I've attached a tar.gz archive with all seven converted files.
Comment 4 Matthew Davis CLA 2011-03-31 12:55:01 EDT
I've reviewed reviewed the contribution and verified it complies with Eclipse/STEM requirements.  Committed to SVN as revision 1588.

Thanks Jan!
Comment 5 Matthew Davis CLA 2011-03-31 12:55:25 EDT
Resolving and adding to IPLog
Comment 6 James Kaufman CLA 2011-07-18 21:44:47 EDT
Complete