ストリーム毎に改行文字を設定 したい

gets,putsなどの行指向入出力でストリーム毎に改行文字が設定したいのでパッ
チを書いてみました。
IO#rs,IO#rs=メソッドでレコードセパレータが設定できます。
openæ™‚ã«ãƒãƒƒã‚·ãƒ¥ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ã§è¨­å®šã§ãã‚‹ã‚ˆã†ã«ã—ãŸã‹ã£ãŸã®ã§ã™ãŒã€é©åˆ‡ãªå ´
所がわかりませんでした。

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

In message “Re: [ruby-dev:42211]
e$B%9%H%j!<%`Kh$K2~9TJ8;[email protected]_Dj$7$?$$e(B”
on Thu, 9 Sep 2010 14:15:07 +0900, MoonWolf [email protected]
writes:

|gets,putse$B$J$I$N9T;X8~F~=PNO$G%9%H%j!<%`Kh$K2~9TJ8;z$,@Dj$7$?$$$N$G%Q%Ce(B
|e$B%A$r=q$$$F$
$^$7$?!#e(B
|IO#rs,IO#rs=e$B%a%=%C%I$G%l%3!<%I%;%Q%l!<%?$,@_Dj$G$-$^$9!#e(B

getse$B$O2~9TJ8;z$r;XDj$G$-$^$9$,!“Kh2s;XDj$9$k$N$,LLE]$J$N$G%9e(B
e$B%H%j!<%[email protected]_Dj$7$?$$$H$$$&%K!<%:$OM}2r$G$-$^$9!#$,!"$=$le(B e$B$O%9%H%j!<%$NESCf$GJQ2=$5$;$?$$$b$N$G$7$g$&$+!#%*%V%8%’%/%He(B
e$B$,JQ2=$7$&$k>uBV$r$”$^$j$?$/$5$s;}$D$N$OK>$^$7$/$J$$$3$H$,B?e(B
e$B$$$N$G!"=i4|2=;[email protected]_Dj$7$F$=$N8eJQ2=$7$J$$$H$$$&;EMM$NJ}$,K>e(B
e$B$^$7$$$h$&$J5$$,$7$^$9$,$I$&$G$7$g$&!#e(B

|opene$B;~$K%O%C%7%e%Q%i%a!<%[email protected]_Dj$G$-$k$h$&$K$7$?$+$C$?$N$G$9$,!"E,@Z$J>le(B
|e$B=j$,$o$+$j$^$;$s$G$7$?!#e(B

e$B$H$$$&I=8=$+$i$Oe(B MoonWolf e$B$5$s$bK\Mh$O$=$l$rK>$s$G$*$i$l$k$he(B
e$B$&$K;W$$$^$9$,!#e(B

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

2010e$BG/e(B9e$B7ne(B9e$BF|e(B14:15 MoonWolf [email protected]:

gets,putse$B$J$I$N9T;X8~F~=PNO$G%9%H%j!<%`Kh$K2~9TJ8;z$,@Dj$7$?$$$N$G%Q%Ce(B e$B%A$r=q$$$F$$^$7$?!#e(B
IO#rs,IO#rs=e$B%a%=%C%I$G%l%3!<%I%;%Q%l!<%?$,@_Dj$G$-$^$9!#e(B
opene$B;~$K%O%C%7%e%Q%i%a!<%[email protected]_Dj$G$-$k$h$&$K$7$?$+$C$?$N$G$9$,!"E,@Z$J>le(B e$B=j$,$o$+$j$^$;$s$G$7$?!#e(B

e$B$3$NF05!$O$h$/M}2r$G$-$k$N$G$9$,!“0d48$J$3$H$Ke(B struct rb_io_t
e$B$Oe(B
e$B8x3+e(B API
e$B$G$”$k$H$$$&1=$,$"$j!"$=$l$,;v<B$J$i$P0B0W$K%U%#!<%k%I$re(B
e$BDI2C$9$k$H%P%$%J%[email protected]$,$J$/$J$C$F$7$^$$$^$9!#e(B

e$B<B:]$3$N$?$a$K!"%P%$%J%[email protected]$,Jx$l$k%?%$%_%s%0$^$Ge(B WONTFIX
e$B$Ke(B
e$B$J$C$F$$$k%P%0$b$"$j$^$9!#e(B[ruby-core:28281] [ruby-dev:40451]

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

Yukihiro M. [email protected] wrote:

getse$B$O2~9TJ8;z$r;XDj$G$-$^$9$,!“Kh2s;XDj$9$k$N$,LLE]$J$N$G%9e(B
e$B%H%j!<%[email protected]_Dj$7$?$$$H$$$&%K!<%:$OM}2r$G$-$^$9!#$,!"$=$le(B e$B$O%9%H%j!<%$NESCf$GJQ2=$5$;$?$$$b$N$G$7$g$&$+!#%*%V%8%’%/%He(B
e$B$,JQ2=$7$&$k>uBV$r$”$^$j$?$/$5$s;}$D$N$OK>$^$7$/$J$$$3$H$,B?e(B
e$B$$$N$G!"=i4|2=;[email protected]_Dj$7$F$=$N8eJQ2=$7$J$$$H$$$&;EMM$NJ}$,K>e(B
e$B$^$7$$$h$&$J5$$,$7$^$9$,$I$&$G$7$g$&!#e(B

STDIN,STDOUT,STDERRe$B$Oe(Bopene$B$5$l$?>uBV$GEO$5$l$k$3$H!"$^$?e(Bsockete$B$N=i4|2=%Q%ie(B
e$B%a!<%?$r;XDj$9$k>l=j$NLdBj$GESCf$GJQ99$9$k;EMM$K$7$^$7$?!#e(B

|opene$B;~$K%O%C%7%e%Q%i%a!<%[email protected]_Dj$G$-$k$h$&$K$7$?$+$C$?$N$G$9$,!"E,@Z$Je(B
e$B>le(B
|e$B=j$,$o$+$j$^$;$s$G$7$?!#e(B

e$B$H$$$&I=8=$+$i$Oe(B MoonWolf e$B$5$s$bK\Mh$O$=$l$rK>$s$G$*$i$l$k$he(B
e$B$&$K;W$$$^$9$,!#e(B

e$B%9%H%j!<%`$r=i4|2=$9$kA4It$N%a%=%C%I$G%O%C%7%e$,;XDj$G$-$k$H$$$$$N$G$9$,!"e(B
e$B%$%s%?%U%’!<%9$r$$$8$i$J$/$F$O$$$1$J$/$F<j$rIU$1$i$l$^$;$s$G$7$?!#e(B
opene$B$G;XDj2DG=$K$9$k$N$OBg;[email protected]$G$9!#e(B

MoonWolf [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs