use encoding in both scripts and modules

2002-05-06 Thread Tatsuhiko Miyagawa
panic happens while hacking with encoding pragma. slasher:/home/miyagawa/tmp> cat encoding-test.pl use strict; require 5.7.3; use encoding 'euc-jp'; use EncBar; my $bar = EncBar::foo; print $bar; slasher:/home/miyagawa/tmp> cat EncBar.pm package EncBar; use encoding 'euc-jp'; sub foo { "\xa4\x

What's the best way to encode strings in native encoding in perl5.8-tobe?

2002-05-06 Thread Tatsuhiko Miyagawa
So, what's the prerfered way to use native encodings as a Perl source code in Perl 5.8? It seems that encoding pragma is handy but not feature complete. It does work on scripts, not on modules. Filter::Util::Call is something dangerous, and has a problem inside C (hence with Apache::Registry) II

[PATCH] Encode::Encoding

2002-05-06 Thread Tatsuhiko Miyagawa
package Encode::MyEncoding; use base qw(Encode::Encoding); __PACKAGE__->Define(qw(myCanonical myAlias)); dies saying: Error: Undefined subroutine &Encode::define_encoding called at ... Patch follows after sig. -- Tatsuhiko Miyagawa <[EMAIL PROTECTED]> --- lib/Encode/Encoding.pm~

Re: use encoding in both scripts and modules

2002-05-06 Thread Dan Kogai
On Monday, May 6, 2002, at 05:16 , Tatsuhiko Miyagawa wrote: > panic happens while hacking with encoding pragma. It seems "use encoding" is still in effect after you 'use EncBar'. Simply commenting out 'use encoding 'euc-jp'' in encoding-test.pl makes the program work as expected. Dan

Re: use encoding in both scripts and modules

2002-05-06 Thread Tatsuhiko Miyagawa
At Mon, 6 May 2002 18:57:11 +0900, Dan Kogai wrote: > > panic happens while hacking with encoding pragma. > > It seems "use encoding" is still in effect after you 'use EncBar'. > Simply commenting out 'use encoding 'euc-jp'' in encoding-test.pl makes > the program work as expected. yep, I kn

Re: [PATCH] Encode::Encoding

2002-05-06 Thread Dan Kogai
On Monday, May 6, 2002, at 06:51 , Tatsuhiko Miyagawa wrote: > > package Encode::MyEncoding; > use base qw(Encode::Encoding); > > __PACKAGE__->Define(qw(myCanonical myAlias)); > > dies saying: > >Error: Undefined subroutine &Encode::define_encoding called at ... > > Patch follows after

[preannounce] Encode::Punycode

2002-05-06 Thread Tatsuhiko Miyagawa
I've just made Encode implementation for Punycode[1]. (Does it make any sense to make such an encodings as subclass of Encode::Encoding? I think it's reasonable, as there's Encode::MIME::Header!) http://bulknews.net/lib/archives/Encode-Punycode-0.01.tar.gz Punycode is an ACE (ASCII Compatible

Re: use encoding in both scripts and modules

2002-05-06 Thread Dan Kogai
On Monday, May 6, 2002, at 07:01 , Tatsuhiko Miyagawa wrote: > yep, I know duplicate calls to "use encoding ..." is discouraged (as > written in docs). But is this "panic" thing as expected? That's a mystery needs to be solved but PerlIO is very sensitive to memory issues and that may be it -- i

Re: [preannounce] Encode::Punycode

2002-05-06 Thread Dan Kogai
On Monday, May 6, 2002, at 07:11 , Tatsuhiko Miyagawa wrote: > I've just made Encode implementation for Punycode[1]. (Does it make > any sense to make such an encodings as subclass of Encode::Encoding? I > think it's reasonable, as there's Encode::MIME::Header!) I bet you do that sooner or later.

[Encode] encoding.pm made slightly more intuitive

2002-05-06 Thread Dan Kogai
On Monday, May 6, 2002, at 06:57 , Dan Kogai wrote: > On Monday, May 6, 2002, at 05:16 , Tatsuhiko Miyagawa wrote: >> panic happens while hacking with encoding pragma. > > It seems "use encoding" is still in effect after you 'use EncBar'. > Simply commenting out 'use encoding 'euc-jp'' in encodi

[Encode] 1.70 released

2002-05-06 Thread Dan Kogai
I should be relieved to release Encode-1.70 because djgpp problem should be resolved with this one, available as follows; Whole: http://www.dan.co.jp/~dankogai/Encode-1.70.tar.gz and CPAN Diff: 200 lines http://www.dan.co.jp/~dankogai/current-1.70.diff.gz And here are changes $

Re: [Encode] 1.70 released

2002-05-06 Thread Abhijit Menon-Sen
At 2002-05-06 19:36:15, [EMAIL PROTECTED] wrote: > > Diff: 200 lines > http://www.dan.co.jp/~dankogai/current-1.70.diff.gz Thanks, applied. (#16426) - ams

Re: [preannounce] Encode::Punycode

2002-05-06 Thread Andreas J. Koenig
> On Mon, 06 May 2002 19:11:19 +0900, Tatsuhiko Miyagawa <[EMAIL PROTECTED]> >said: > NAME > Encode::Punycode - Encode plugin for Punycode encodings > SYNOPSIS > use Encode::Punycode; > use Encode; > $utf8 = decode('Punycode', $punycode); > $pu

Re: README.cjk?

2002-05-06 Thread Dan Kogai
Autrijus & Jungshik, pumpking is calling for the (hopefully) the last chance to update README.cjk. On Tuesday, May 7, 2002, at 02:48 , Jarkko Hietaniemi wrote: > Do I have the latest versions of the README.{cn,jp,ko,tw}? I do think so but I am calling for the last possible update anyhow. Hmm.

Re: README.cjk?

2002-05-06 Thread Autrijus Tang
On Tue, May 07, 2002 at 03:05:22AM +0900, Dan Kogai wrote: > pumpking is calling for the (hopefully) the last chance to update > README.cjk. Green light here. > Hmm. Looks like all my homework is done. 5.8 soon? Hurray! /Autrijus/ msg01320/pgp0.pgp Description: PGP signature

Re: README.cjk?

2002-05-06 Thread Jarkko Hietaniemi
On Tue, May 07, 2002 at 04:02:36AM +0800, Autrijus Tang wrote: > On Tue, May 07, 2002 at 03:05:22AM +0900, Dan Kogai wrote: > > pumpking is calling for the (hopefully) the last chance to update > > README.cjk. > > Green light here. > > > Hmm. Looks like all my homework is done. 5.8 soon? > >

Re: README.cjk?

2002-05-06 Thread Jungshik Shin
On Tue, 7 May 2002, Dan Kogai wrote: Hi Dan, > pumpking is calling for the (hopefully) the last chance to update > README.cjk. > > On Tuesday, May 7, 2002, at 02:48 , Jarkko Hietaniemi wrote: > > Do I have the latest versions of the README.{cn,jp,ko,tw}? > > I do think so but I am calling fo

Re: README.cjk?

2002-05-06 Thread Jarkko Hietaniemi
On Mon, May 06, 2002 at 09:01:58PM -0400, Jungshik Shin wrote: > On Tue, 7 May 2002, Dan Kogai wrote: > > Hi Dan, > > > pumpking is calling for the (hopefully) the last chance to update > > README.cjk. > > > > On Tuesday, May 7, 2002, at 02:48 , Jarkko Hietaniemi wrote: > > > Do I have the la