Community
Participate
Working Groups
Created attachment 167699 [details] .log file of the workspace with traces of cases when refactoring fails Consider the following little program: program nonASCII_bug ! comment with a non ASCII character: é do i=1,2 print *,i enddo end If the non-ASCII character "é" at the end of the comment line is removed, the 'introduce implicit none' refactoring works. if the "é" is there, it does not work. I even think that it would be the case for any refactoring (I tested it also for the "Change Keyword case..." refactoring. the workspace/.metadata/.log is included
Just reproduced this. The example works as expected when the file is MacRoman encoded (default on OS X). It gives "This refactoring does not change any source code" when the file is UTF-16 encoded. When the file is UTF-8 encoded, it gives the error in the log file (org.eclipse.text.edits.MalformedTreeException: End position lies outside document range)
Created attachment 168076 [details] Unicode support patch The changes to support this were pervasive but not particularly complicated. Attaching a patch for reference.
Patch committed to CVS.