[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.dltk] Re: Encoding issues
|
I'm at home and did the following on Europa: removed all dltk files from
Eclipse's directory and also deleted my whole workspace metadata. I've
downloaded DLTK full 0.95 and therefore installed it again from scratch.
But it still has problems. I'd like to update my problems list to the
following to be more clear:
1) Default workspace encoding is Cp1252 (~= ISO-8859-1), and thus my Ruby
project, but the files themselves are mostly UTF-8. If the project was a
Java project, only Cp1252 files would be well visualized and we'd see
UTF-8 files with conflicting chars (ã, ê, í, etc)as messy files.
But even if no project encoding is set and workspace encoding is Cp1252,
DLTK treats all files as UTF-8!!! Therefore, ISO-8859-1 files is what will
be messy instead, when actually it should be UTF-8 ones! This looks weird
but is exactly what's happening. Read again if necessary to understand
well.
2) Run dialog isn't working still, the same way I mentioned before. But
I've noticed an error back to the dialog, pointing to some log. I've found
that log and here is some stacktrace: http://pastebin.com/m9ba92c1. Take a
look at line 90, that is one of my files. Analyzing how the referred index
varies from file to file, I've just discovered that you can't have spaces
at the path of your project!!!
In a nutshell: all this evidences make me guess that the following
problems are happening and need to be fixed:
Problem #1
==========
DLTK is always treating files as UTF-8 regardless of project or workspace
configuration. Only file-level configuration works.
For example if you put an ISO-8859-1 file on an ISO-8859-1 project, then
special chars become messy, but if you put UTF-8 files on the same project
then they're shown ok. Actually, the expected behavior is the contrary.
Notice that output is misunderstood (my original problem) because it's
being treating as ISO-8859-1 (inherited from my workspace config).
I wonder whether the second problem bellow is someway related to this one
(maybe DLTK would be trying to get encoding configuration to know how to
treat files but can't because of spaces in path, then it treats all files
as UTF-8, as a default behavior).
Problem #2
==========
DLTK is not allowing to store your project into a directory containing
spaces. This is what's making Run dialog to crash!
I ask your attention to my message and appreciate your help, regards.