[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Strange rhtml template compile error

M. Ayhan

12/15/2008 6:04:00 PM

Hi,
I have the following statement inside an rhtml file

%="Ä?Ä?Ä?"%>

These chars are from ISO-8859-9 and their byte values are F0, D0, F0
respectively, which are "LATIN SMALL LETTER G WITH BREVE" and "LATIN
CAPITAL LETTER G WITH BREVE".

When I run this code it gets:

compile error
C:/test/app/views/test/work.rhtml:1: unterminated string meets end of
file
C:/test/app/views/test/work.rhtml:1: syntax error, unexpected $end,
expecting ')'

Extracted source (around line #1):

1: <%="���"%>

However when I debug the code using rdebug, I see that the following
code
in action_view\template_handlers\compileable.rb is called.

ActionView::Base::CompiledTemplates.module_eval(render_source,
file_name, -line_offset)

Here the value of render_source printed by the debugger is as follows:

"def _run_erb_47app47views47test47work46rhtml(local_assigns)\n_erbout =
''; _erb
out.concat((\"­-º­-").to_s); _erbout\nend"
^ ^
| |---- it does not escape here
|---- here it escapes " but

The strange thing I noticed is above, where it escapes the first double
quote but not the second.


I thougt that the debugger may not be interpreting the characters
correctly so checked the byte values by evaluating by hand like
render_source[91], render_source[92], render_source[93]. It gave me
correct values as 240, 208 and 240 again. However, module_eval keeps
giving compilation error although I cannot see and appearant reason why
is fails.

Can someone shed some light on it?


Thanks.
--
Posted via http://www.ruby-....

7 Answers

Mike Painter

12/15/2012 4:50:00 AM

0

On Fri, 14 Dec 2012 14:35:42 -0500, SilentOtto@hotmail.com wrote:

>
>> You've made it very clear that you are opposed to the revealed
>>God of the bible.
>
>You cannot demonstrate that my "personal understanding of the one God
>almighty" is wrong and that yours is right.

Earl reveals his "ignorance" (a polite term for pig headed stupidity.)
of the RCC with these comments.

duke

12/15/2012 1:45:00 PM

0

On Fri, 14 Dec 2012 14:35:42 -0500, SilentOtto@hotmail.com wrote:

>On Fri, 14 Dec 2012 10:34:24 -0600, duke <duckgumbo32@cox.net> wrote:
>
>>On Thu, 13 Dec 2012 16:04:50 -0500, SilentOtto@hotmail.com wrote:
>>
>>>On Thu, 13 Dec 2012 12:42:23 -0600, duke <duckgumbo32@cox.net> wrote:
>>>
>>>>On Wed, 12 Dec 2012 12:15:26 -0500, SilentOtto@hotmail.com wrote:
>>>>
>>>>>On Wed, 12 Dec 2012 10:57:50 -0600, duke <duckgumbo32@cox.net> wrote:
>>>>>
>>>>>>On Tue, 11 Dec 2012 20:30:56 -0500, SilentOtto@hotmail.com wrote:
>>>>>>
>>>>>>>On Tue, 11 Dec 2012 11:56:14 -0600, duke <duckgumbo32@cox.net> wrote:
>>>>>>>
>>>>>>>>On Mon, 10 Dec 2012 16:19:41 -0500, SilentOtto@hotmail.com wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>>>>Usenet doesn't have enough room for more than one verse?
>>>>>>>>>>That's what I'm trying to tell you. You need to start doing some studying on
>>>>>>>>>>your own.
>>>>>>>>
>>>>>>>>>No, Dook.
>>>>>>>>>You're making claims, you have to support them.
>>>>>>>>
>>>>>>>>They're supported in many, many claims already.
>>>>>>>
>>>>>>>Your claims are not supported.
>>>>>>>You're making shit up.
>>>>>>
>>>>>>You haven't even tried to find out for yourself.
>>>>>
>>>>>I'm perfectly comfortable with my "personal understanding of the one
>>>>>God almighty", Dook.
>>>>
>>>>Great. If you're wrong as you appear to be, I won't be the loser.
>>
>>>There's no reason to think I'm wrong, Dook.
>>
>>Sure there is.
>
>No there isn't.
>
>> You've made it very clear that you are opposed to the revealed
>>God of the bible.

>You cannot demonstrate that my "personal understanding of the one God
>almighty" is wrong and that yours is right.

I'm not interested in showing your error to you. You can't show me I'm wrong,
and so I will win.


>>>There you go judging other people's beliefs again...
>>>You know...
>>>That thing you said you never do?
>>>You theists are such fucking LIARS, Dook.
>>OTOH, I never lie on the ng.

>You don't get to judge other's beliefs and then claim that you never
>judge other's beliefs without being a liar, Dook..

Oh, I don't judge your beliefs. I just tell you that your's are wrong. For you
to have any and not be the same as mine, your's has no basis in existence,
especially biblically. Heeheehee.

The dukester, American - American
********************************************
You can't fix stupid.
********************************************

Linuxgal

12/15/2012 5:19:00 PM

0

Mike Painter wrote:
> On Fri, 14 Dec 2012 14:35:42 -0500,SilentOtto@hotmail.com wrote:
>
>> >
>>> >>You've made it very clear that you are opposed to the revealed
>>> >>God of the bible.
>> >
>> >You cannot demonstrate that my "personal understanding of the one God
>> >almighty" is wrong and that yours is right.
> Earl reveals his "ignorance" (a polite term for pig headed stupidity.)
> of the RCC with these comments.

Taken together with his neo-Nestorian heresy, one can only conclude he
was Catholic from birth, because he'd flunk RCIA today.

--
Halftime at Circvs Maximvs, and the Lions lead the Christians 326-0

SilentOtto

12/15/2012 7:46:00 PM

0

On Sat, 15 Dec 2012 07:45:24 -0600, duke <duckgumbo32@cox.net> wrote:

>On Fri, 14 Dec 2012 14:35:42 -0500, SilentOtto@hotmail.com wrote:
>
>>On Fri, 14 Dec 2012 10:34:24 -0600, duke <duckgumbo32@cox.net> wrote:
>>
>>>On Thu, 13 Dec 2012 16:04:50 -0500, SilentOtto@hotmail.com wrote:
>>>
>>>>On Thu, 13 Dec 2012 12:42:23 -0600, duke <duckgumbo32@cox.net> wrote:
>>>>
>>>>>On Wed, 12 Dec 2012 12:15:26 -0500, SilentOtto@hotmail.com wrote:
>>>>>
>>>>>>On Wed, 12 Dec 2012 10:57:50 -0600, duke <duckgumbo32@cox.net> wrote:
>>>>>>
>>>>>>>On Tue, 11 Dec 2012 20:30:56 -0500, SilentOtto@hotmail.com wrote:
>>>>>>>
>>>>>>>>On Tue, 11 Dec 2012 11:56:14 -0600, duke <duckgumbo32@cox.net> wrote:
>>>>>>>>
>>>>>>>>>On Mon, 10 Dec 2012 16:19:41 -0500, SilentOtto@hotmail.com wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>>>Usenet doesn't have enough room for more than one verse?
>>>>>>>>>>>That's what I'm trying to tell you. You need to start doing some studying on
>>>>>>>>>>>your own.
>>>>>>>>>
>>>>>>>>>>No, Dook.
>>>>>>>>>>You're making claims, you have to support them.
>>>>>>>>>
>>>>>>>>>They're supported in many, many claims already.
>>>>>>>>
>>>>>>>>Your claims are not supported.
>>>>>>>>You're making shit up.
>>>>>>>
>>>>>>>You haven't even tried to find out for yourself.
>>>>>>
>>>>>>I'm perfectly comfortable with my "personal understanding of the one
>>>>>>God almighty", Dook.
>>>>>
>>>>>Great. If you're wrong as you appear to be, I won't be the loser.
>>>
>>>>There's no reason to think I'm wrong, Dook.
>>>
>>>Sure there is.
>>
>>No there isn't.
>>
>>> You've made it very clear that you are opposed to the revealed
>>>God of the bible.
>
>>You cannot demonstrate that my "personal understanding of the one God
>>almighty" is wrong and that yours is right.
>
>I'm not interested in showing your error to you.

Then why have you been proclaiming that I, along with many others, are
going to hell?

>You can't show me I'm wrong,
>and so I will win.

You're the one making claims about the nature of God, you're the one
who has to make your case.


>>>>There you go judging other people's beliefs again...
>>>>You know...
>>>>That thing you said you never do?
>>>>You theists are such fucking LIARS, Dook.
>>>OTOH, I never lie on the ng.
>
>>You don't get to judge other's beliefs and then claim that you never
>>judge other's beliefs without being a liar, Dook..
>
>Oh, I don't judge your beliefs.

Liar.

> I just tell you that your's are wrong.

That's called "judging", Dook.

You -really- aren't very bright, are you?

This is what makes you theists so dangerous to society.

You can hold mutually exclusive beliefs as both being true.

That sort of psychosis is not to be trifled with.


> For you
>to have any and not be the same as mine, your's has no basis in existence,
>especially biblically. Heeheehee.

Your beliefs have no basis in existence, and you're lying and making
shit up, as you theists always do.

Heh heh...

Lying racist rightard socialists...

Batshit crazy and dogshit stupid, every single last one of you.



>
>The dukester, American - American
>********************************************
>You can't fix stupid.
>********************************************

Yap

12/15/2012 11:52:00 PM

0

On Dec 14, 2:43 am, duke <duckgumb...@cox.net> wrote:
> On Thu, 13 Dec 2012 01:24:09 -0800 (PST), Yap <hhyaps...@gmail.com> wrote:
> >On Dec 13, 2:31 am, "Zacharias Mulletstein"
> ><zachariasmulletst...@isright.com> wrote:
> >> BudiKKKa loves to get donkey punched, I heard.
>
> >No, Budikka loves to hear Zachy and duck get punched.
> >You heard wrong, as usual.
>
> Bud da dud has never witnessed me getting punched.

May be you get punched in the dark so that no one can bear witness ?

>
> The dukester, American - American
> ********************************************
> You can't fix stupid.
> ********************************************

Yap

12/15/2012 11:55:00 PM

0

On Dec 14, 8:39 am, "Zacharias Mulletstein"
<zachariasmulletst...@isright.com> wrote:
> "duke" <duckgumb...@cox.net> wrote in message
>
> news:bd8kc8lipb8v75as6sfvkr1bm96msghstk@4ax.com...
>
> > On Thu, 13 Dec 2012 01:24:09 -0800 (PST), Yap <hhyaps...@gmail.com> wrote:
>
> >>On Dec 13, 2:31 am, "Zacharias Mulletstein"
> >><zachariasmulletst...@isright.com> wrote:
> >>> BudiKKKa loves to get donkey punched, I heard.
>
> >>No, Budikka loves to hear Zachy and duck get punched.
> >>You heard wrong, as usual.
>
> > Bud da dud has never witnessed me getting punched.
>
> BuddiKKA, Yappy, and Puke in the same post.  Man, can it get any stupider
> than that?

Well, you get sucked into the side of Puke and made the comment on
us...wouldn't that is even more stupider ?

Yap

12/15/2012 11:56:00 PM

0

On Dec 15, 12:34 am, duke <duckgumb...@cox.net> wrote:
> On Thu, 13 Dec 2012 18:39:40 -0600, "Zacharias Mulletstein"
>
>
>
>
>
>
>
>
>
> <zachariasmulletst...@isright.com> wrote:
>
> >"duke" <duckgumb...@cox.net> wrote in message
> >news:bd8kc8lipb8v75as6sfvkr1bm96msghstk@4ax.com...
> >> On Thu, 13 Dec 2012 01:24:09 -0800 (PST), Yap <hhyaps...@gmail.com> wrote:
>
> >>>On Dec 13, 2:31 am, "Zacharias Mulletstein"
> >>><zachariasmulletst...@isright.com> wrote:
> >>>> BudiKKKa loves to get donkey punched, I heard.
>
> >>>No, Budikka loves to hear Zachy and duck get punched.
> >>>You heard wrong, as usual.
>
> >> Bud da dud has never witnessed me getting punched.
>
> >BuddiKKA, Yappy, and Puke in the same post.  Man, can it get any stupider
> >than that?
>
> And you makes 4.

Indeed he is, but he is in your same league. Not on the sane side.

>
> The dukester, American - American
> ********************************************
> You can't fix stupid.
> ********************************************