Marshal.load can't take GZipReader

artone$B$G$9!#e(B

1.9.0e$B$G$9$,!"e(Bzlibe$B$Ne(BGZipReadere$B$K$Oe(Bgetbytee$B$,L$Dj5A$J$N$G!“e(BMarshl.loade$B$KM?e(B
e$B$($k$H!“e(Binstance of IO neede$B$NNc30$H$J$j$^$9!#e(B
e$B$H$j$”$($:$Oe(Bgetce$B$N%(%$%j%”%9$GNI$$$N$G$O$J$$$+$H;W$$$^$9$,!"e(BGZipReader#getbyte
[email protected]$1$^$;$s$+!#e(B


arton [email protected]

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36801] Marshal.load can’t take GZipReader”
on Mon, 20 Oct 2008 18:23:50 +0900, arton [email protected]
writes:

|1.9.0e$B$G$9$,!"e(Bzlibe$B$Ne(BGZipReadere$B$K$Oe(Bgetbytee$B$,L$Dj5A$J$N$G!“e(BMarshl.loade$B$KM?e(B
|e$B$($k$H!“e(Binstance of IO neede$B$NNc30$H$J$j$^$9!#e(B
|e$B$H$j$”$($:$Oe(Bgetce$B$N%(%$%j%”%9$GNI$$$N$G$O$J$$$+$H;W$$$^$9$,!"e(BGZipReader#getbyte
|[email protected]$1$^$;$s$+!#e(B

getbytee$B$NDI2C$K$D$$$F$ON;>5$7$^$7$?!#$7$+$7!“e(B1.9e$B$G$Oe(BIO#getc
e$B$OJ8;zNs$rJV$9$N$G$9$,!”[email protected]?t$N$^$^$G$9$M!#e(B

artone$B$G$9!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#e(B

getbytee$B$NDI2C$K$D$$$F$ON;>5$7$^$7$?!#$7$+$7!“e(B1.9e$B$G$Oe(BIO#getc
e$B$OJ8;zNs$rJV$9$N$G$9$,!”[email protected]?t$N$^$^$G$9$M!#e(B
e$B3N$+$K$=$&$G$9$M!#e(B
e$B<B$O!":G=i$N%a!<%k$r=q$$$F$$$F5$$K$J$C$?$N$G$9$,!“e(Bexte$BG[2<$N%i%$%V%i%j$Ke(B
e$B$D$$$F$b!“e(B1.9.1e$BMQ$N;EMM%U%j!<%:$OBP>]$K$J$k$N$G$7$g$&$+!)e(B
e$B>/$J$/[email protected];d$K$D$$$F$OLdBj$J$$$N$G$9$,!“A[A|$9$k$H!“e(BGZipReader
e$B$N$h$&$Je(BIOe$B$HF1$8$h$&$K$U$k$^$&$3$H$rA[Dj$5$l$F$$$k!J$H;W$&$N$G$9$,!K%*%Ve(B
e$B%8%’%/%H$N%a%=%C%I!J$3$3$G$Oe(Bgetce$B!K$,!”$7$P$i$/$N4V$Oe(B1.8e$B$N;EMM$N$^$^@0?te(B
e$B$rJV$7!”$”$k;[email protected]$+$ie(BIOe$B$K9g$o$;$FJ8;zNs$rJV$9!”$H$$$&$h$&$JJQ99$,F~$k$H%$e(B
e$B%s%Q%/%H$,$"$j$^$9!#!#e(B
e$B$G$-$l$P!"e(BIOe$B$HJL$N%a%=%C%I%;%C%H$r;}$D$N$G$O$J$/!“e(Bgetce$B$be(BIOe$B$K9g$o$;$FJ8;ze(B
e$BNs$rJV$9$h$&[email protected]$-$?$$$G$9!#EvLL$N$H$3$mIT2DG=$J$h$&$G$”$l$P!J0\e(B
e$B9T4|4VCf$NA<CV$H$7$F!Ke(BNotImplementedErrore$B$re(Braisee$B$9$k$H$+!#e(B
e$B$=$N>l9g!"e(B1.9e$B$X0\9T$7$?$$%f!<%6!<%W%m%0%i%`$O!"Aa$$$&[email protected]?t$rJV$9%a%=%Ce(B
e$B%I$H$7$Fe(Bgetbytee$B$K!Je(BIOe$B$HF1$8$h$&$K!KJQ$($k$3$H$,$G$-$^$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36803] Re: Marshal.load can’t take GZipReader”
on Mon, 20 Oct 2008 21:12:15 +0900, arton [email protected]
writes:

|> getbytee$B$NDI2C$K$D$$$F$ON;>5$7$^$7$?!#$7$+$7!“e(B1.9e$B$G$Oe(BIO#getc
|> e$B$OJ8;zNs$rJV$9$N$G$9$,!”[email protected]?t$N$^$^$G$9$M!#e(B
|e$B3N$+$K$=$&$G$9$M!#e(B

e$B$H$$$&$o$1$G!"<BAu$7$F%3%_%C%H$7$^$7$?!#e(Bgetce$B$,J8;zC10L$GF0:ne(B
[email protected]$1$G$J$/!"e(B

Zlib::Gzip{Reader,Writer}.open

e$B$,!"e(BIOe$BF1MM$Ke(B

encoding:
external_encoding:
internal_encoding:

e$B$r<u$1IU$1$k$h$&$K$J$j$^$9!#$"$s$^$jLVMeE*$J%F%9%H$O$7$F$J$$e(B
e$B$N$G%P%0$,$"$k$+$b$7$l$^$;$s!#e(B

|e$B<B$O!":G=i$N%a!<%k$r=q$$$F$$$F5$$K$J$C$?$N$G$9$,!"e(Bexte$BG[2<$N%i%$%V%i%j$Ke(B
|e$B$D$$$F$b!"e(B1.9.1e$BMQ$N;EMM%U%j!<%:$OBP>]$K$J$k$N$G$7$g$&$+!)e(B

Yuguie$B$5$s$K3NG’$7$J$$$H$$$1$^$;$s$,!"E:IU$K4X$7$F$Oe(B9/25e$B$G8Ge(B
e$BDj$H$$$&$3$H$O$J$$$H;W$$$^$9!#4|8B$ODj$a$J$$$H$$$1$J$$$G$7$ge(B
e$B$&$,!#e(B

e$B1sF#$G$9!#e(B

2008/10/21 18:21 Yukihiro M. [email protected]:

|e$B<B$O!":G=i$N%a!<%k$r=q$$$F$$$F5$$K$J$C$?$N$G$9$,!"e(Bexte$BG[2<$N%i%$%V%i%j$Ke(B
|e$B$D$$$F$b!"e(B1.9.1e$BMQ$N;EMM%U%j!<%:$OBP>]$K$J$k$N$G$7$g$&$+!)e(B

Yuguie$B$5$s$K3NG’$7$J$$$H$$$1$^$;$s$,!"E:IU$K4X$7$F$Oe(B9/25e$B$G8Ge(B
e$BDj$H$$$&$3$H$O$J$$$H;W$$$^$9!#4|8B$ODj$a$J$$$H$$$1$J$$$G$7$ge(B
e$B$&$,!#e(B

[ruby-core:18847] e$B$K$Fe(B yugui e$B$5$s$,e(B 9/24 e$B$Ke(B

The standard libraries will also be frozen.
If you have changes of some libraries or features, let me know it by
replying to this message by tomorrow and commit it as soon as possible.

[email protected]$C$F$$$^$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36846] Re: Marshal.load can’t take GZipReader”
on Tue, 21 Oct 2008 20:09:45 +0900, “Yusuke ENDOH” [email protected]
writes:

|> Yuguie$B$5$s$K3NG’$7$J$$$H$$$1$^$;$s$,!"E:IU$K4X$7$F$Oe(B9/25e$B$G8Ge(B
|> e$BDj$H$$$&$3$H$O$J$$$H;W$$$^$9!#4|8B$ODj$a$J$$$H$$$1$J$$$G$7$ge(B
|> e$B$&$,!#e(B
|
|[ruby-core:18847] e$B$K$Fe(B yugui e$B$5$s$,e(B 9/24 e$B$Ke(B
|
|> The standard libraries will also be frozen.
|> If you have changes of some libraries or features, let me know it by
|> replying to this message by tomorrow and commit it as soon as possible.
|
|[email protected]$C$F$$$^$9!#e(B

e$B$$!"[email protected]$G$9$M!#E:IU$H$$$($I5$0B$/;EMMJQ99$7$F$O$$$1$^$;$se(B
e$B$M!#:#2s$N$O%P%[email protected]$H;W$&$1$I!#e(B

In article [email protected],
Yukihiro M. [email protected] writes:

e$B$r<u$1IU$1$k$h$&$K$J$j$^$9!#$"$s$^$jLVMeE*$J%F%9%H$O$7$F$J$$e(B
e$B$N$G%P%0$,$"$k$+$b$7$l$^$;$s!#e(B

e$B$H$j$"$($:e(B external_encoding e$B$Ke(B iso-2022-jp
e$B$r;XDj$7$?;~$Ke(B
getc e$B$,e(B IO e$B$H0[$J$k7k2L$K$J$j$^$9!#e(B

% echo e$B$"e(B|nkf|gzip -c|./ruby -rzlib -e ‘z =
Zlib::GzipReader.new(STDIN, :external_encoding => “iso-2022-jp”,
:internal_encoding => “euc-jp”); p z.getc’
“\e”
% ./ruby -v
ruby 1.9.0 (2008-10-22 revision 19883) [i686-linux]

IO e$B$G$O$A$c$s$H!V$"!W$K$J$j$^$9!#e(B

% echo e$B$“e(B|nkf|./ruby -e 'z = open(”/dev/stdin", :external_encoding
=> “iso-2022-jp”, :internal_encoding => “euc-jp”); p z.getc’
"e$B$“e(B”