You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Ayhan Ulusoy <ay...@drexel.edu> on 2003/08/14 21:34:24 UTC

RE : BINMODE does not seem to support PerlIO layers on mod_perl 2

Thanks Stas, & let me know if I can be of any help (I won't be here for
the next two weeks though).

Ayhan



-----Message d'origine-----
De : Stas Bekman [mailto:stas@stason.org] 
Envoyé : mercredi 13 août 2003 10:29
À : Ayhan Ulusoy
Cc : dev@perl.apache.org
Objet : Re: BINMODE does not seem to support PerlIO layers on mod_perl 2

Ayhan Ulusoy wrote:
[...]

I now have a test that reproduces the problem. Will post back as soon as
I've 
got a fix. Thanks for the detailed bug report.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: RE : BINMODE does not seem to support PerlIO layers on mod_perl 2

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Stas Bekman wrote:
> Ayhan Ulusoy wrote:
> 
>> Thanks Stas, & let me know if I can be of any help (I won't be here for
>> the next two weeks though).
> 
> 
> Try the cvs version, I have just committed a perlio layer interface 
> which will be used instead of the tied handle for perl5.8+ w/useperlio. 
> Now binmode works, see the test t/modperl/print_utf8.t 
> t/response/TestModperl/print_utf8.pm

nice work stas!

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: RE : RE : BINMODE does not seem to support PerlIO layers on mod_perl 2

Posted by Stas Bekman <st...@stason.org>.
Ayhan Ulusoy wrote:
> Sorry for the latish reply. I'm now back from vacation. 
> 
> Yes. The CVS version seems to be working for us now. 
> 
> I don't know what the new "layer" implementation does, but it seems to
> cut it for us at this point. Thanks a lot.
> 
> Just out of curiosity... how does the new implementation differ from the
> old one?

Previously we were using a tied STDOUT|STDIN now we use perlio layers (if perl 
was built w/ perlio enabled. I still plan to somehow fix the tied interface to 
support binmode as well. Steve Hay has posted some code for mp1 on the modperl 
list a few months ago.

> I saw the "print_utf8" test too :-) Thanks.

;)

> Something a little fancier doesn't work though :
> 
> 	use encoding 'utf8';			# 	WON'T WORK.
> 
> 
> This line normally would, among other things, force both STDIN & STDOUT
> to use the "utf8" layer. 
> 
> Guess what, it seems to force a guaranteed "seg-fault" as well :-).
> 
> I was intending to make a ".t" file for this one, but then I thought
> since it seg-faults, it wouldn't be of any use running it as a standard
> test, would it?

Of course, we want tests that both fail and segfault. That makes us fix things 
pretty quickly. Please send it along. I'll look at fixing it next week.

I'm also working on some utf8 request tests. Since we need to test utf8-ness 
of STDIN as well.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


RE : RE : BINMODE does not seem to support PerlIO layers on mod_perl 2

Posted by Ayhan Ulusoy <ay...@drexel.edu>.
Sorry for the latish reply. I'm now back from vacation. 

Yes. The CVS version seems to be working for us now. 

I don't know what the new "layer" implementation does, but it seems to
cut it for us at this point. Thanks a lot.

Just out of curiosity... how does the new implementation differ from the
old one?

I saw the "print_utf8" test too :-) Thanks.


Something a little fancier doesn't work though :

	use encoding 'utf8';			# 	WON'T WORK.


This line normally would, among other things, force both STDIN & STDOUT
to use the "utf8" layer. 

Guess what, it seems to force a guaranteed "seg-fault" as well :-).

I was intending to make a ".t" file for this one, but then I thought
since it seg-faults, it wouldn't be of any use running it as a standard
test, would it?

Thanks again
Ayhan









-----Message d'origine-----
De : Stas Bekman [mailto:stas@stason.org] 
Envoyé : jeudi 21 août 2003 03:01
À : Ayhan Ulusoy
Cc : dev@perl.apache.org; Steve Hay
Objet : Re: RE : BINMODE does not seem to support PerlIO layers on
mod_perl 2

Ayhan Ulusoy wrote:
> Thanks Stas, & let me know if I can be of any help (I won't be here
for
> the next two weeks though).

Try the cvs version, I have just committed a perlio layer interface
which will 
be used instead of the tied handle for perl5.8+ w/useperlio. Now binmode

works, see the test t/modperl/print_utf8.t
t/response/TestModperl/print_utf8.pm

I'll move onto looking how to solve this issue for the tie-handle, for
mp1 and 
mp2, including Steve's patch, but for now see whether the new
implementation 
works for you.

If you want to help, we need more tests.

> -----Message d'origine-----
> De : Stas Bekman [mailto:stas@stason.org] 

> I now have a test that reproduces the problem. Will post back as soon
as
> I've 
> got a fix. Thanks for the detailed bug report.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: RE : BINMODE does not seem to support PerlIO layers on mod_perl 2

Posted by Stas Bekman <st...@stason.org>.
Ayhan Ulusoy wrote:
> Thanks Stas, & let me know if I can be of any help (I won't be here for
> the next two weeks though).

Try the cvs version, I have just committed a perlio layer interface which will 
be used instead of the tied handle for perl5.8+ w/useperlio. Now binmode 
works, see the test t/modperl/print_utf8.t t/response/TestModperl/print_utf8.pm

I'll move onto looking how to solve this issue for the tie-handle, for mp1 and 
mp2, including Steve's patch, but for now see whether the new implementation 
works for you.

If you want to help, we need more tests.

> -----Message d'origine-----
> De : Stas Bekman [mailto:stas@stason.org] 

> I now have a test that reproduces the problem. Will post back as soon as
> I've 
> got a fix. Thanks for the detailed bug report.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org