Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341438 - Character encoding problems on ubuntu 10.10 linux
Summary: Character encoding problems on ubuntu 10.10 linux
Status: CLOSED FIXED
Alias: None
Product: STEM
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.1.2   Edit
Assignee: Matthew Davis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 20:21 EDT by Jan Pieper CLA
Modified: 2012-01-20 19:40 EST (History)
2 users (show)

See Also:


Attachments
utf-8 conversion of several files (5.55 KB, patch)
2011-03-30 20:21 EDT, Jan Pieper CLA
sedlund: iplog+
Details | Diff
Full utf-8 files as per Matt's request (30.35 KB, application/x-gzip)
2011-03-31 12:42 EDT, Jan Pieper CLA
sedlund: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
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