This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Kawa on Android - unable to use 'for-each' form
On 03/19/2011 10:39 AM, Benny Tsai wrote:
Got it! The problem is indeed in the Java pre-processing.
The issue is that when I got the sources from SVN, svn automatically
converted line endings to Windows line endings. However, the logic in
gnu/kawa/util/PreProcess.java appears to have been written with Unix
line endings in mind, leading to the pre-processing misbehaving on my
system. The sources you sent worked because they retained Unix line
endings.
Well, PreProcess.java is *intended* to support Windows line endings,
as you can tell from the places where '\r' is used in the code. But there
is probably some bug, since I haven't tested it on Windows.
Would you mind trying to debug PreProcess? I really would like
to have it work out-of-the-box on Windows. Just run PreProcess
manually on some sample file that it handles wrong. Once you've
manually reproduced the problem, you can try simplifying to get
create a shorter file so if you add println statements to PreProcess
you don't get overwhelmed.
--
--Per Bothner
per@bothner.com http://per.bothner.com/