Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #41165] [PATCH] appropriate handle CRLE in Here Docs

6 views
Skip to first unread message

Lee Duhem

unread,
Jan 2, 2007, 9:17:47 PM1/2/07
to bugs-bi...@rt.perl.org
# New Ticket Created by "Lee Duhem"
# Please include the string: [perl #41165]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41165 >


Current parrot(in fact, lexical analyzer of PIR) don't play well
with CRLE in Here Docs on Unix-like box such as Linux, you will
get syntax error when feed parrot DOS fileformat(i.e. use CRLF line
terminators) source(include Here Docs, of course) on Linux. And
this is the *real* reason of bug [perl #41158] Here Docs in test
C<cmp> cause t/op/cmp-nonbranch.t abnormal exit.

These attached patches fix this, and I think it's a better fix
for [perl #41158].

I have test it on Linux, it just works fine. Can someone test it
on Windows? Thanks

If you want to test this patch, you need to apply imcc_l.patch first,
and then apply root_in.patch (this will refresh compilers/imcc/imclexer.c
for you, current config/gen/makefiles/root.in will not do that). Then
reconfigure your parrot use option --maintainer (you need working lex,
at least), and make.

BTW, If you use bison and have "uninitialized value" warning when you
reconfigure parrot, you can apply patch in [perl #41163], this fix it.

Lee

imcc_l.patch
root_in.patch
0 new messages