ConverterNotFoundError while making Ruby in Windows(trunk)


#1

e$B=uED$G$9!#e(B
e$BNc$K$h$C$FJs9p$@$1$G$9!#e(B

Cygwin e$B>e$Ge(B CC=‘gcc -mno-cygwin’ e$B$G%3%s%Q%$%k$7$?$H$-$Ke(B
e$B3HD%%i%$%V%i%je(Bdbme$B$N%3%s%Q%$%k$Ge(BEncoding::ConverterNotFoundError
e$B$,=P$F<:GT$7$^$9!#e(B

VS2005e$B$G$bF1$8Nc30$,$G$^$7$?!#e(B

e$B$A$J$_$K;d$O!"e(Bdbme$B$N%3%s%Q%$%k$KI,MW$Je(BWindowse$BMQ$Ne(Blibrarye$B$de(B
e$B%X%C%@!<%U%!%$%k$rB7$($F$J$$$N$GIaCJ$O!"e(Bdbm.soe$B$O$G$-$^$;$s!#e(B

compiling dbm
…/…/…/…/svn/ruby/trunk/ext/extmk.rb:88:in write': code converter not found (US-ASCII to ASCII-8BIT with crlf_newline) (Encoding::ConverterNotFoundError) from ../../../../svn/ruby/trunk/ext/extmk.rb:88:inprint’
from …/…/…/…/svn/ruby/trunk/ext/extmk.rb:88:in extmake' from ../../../../svn/ruby/trunk/ext/extmk.rb:435:inblock in

' from ../../../../svn/ruby/trunk/ext/extmk.rb:431:in `each' from ../../../../svn/ruby/trunk/ext/extmk.rb:431:in `'

e$B=uEDe(B e$B2m5*e(B


#2

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:36774] ConverterNotFoundError while making Ruby in
Windows(trunk)”
on Oct.18,2008 08:29:16, removed_email_address@domain.invalid wrote:

Cygwin e$B>e$Ge(B CC=‘gcc -mno-cygwin’ e$B$G%3%s%Q%$%k$7$?$H$-$Ke(B
e$B3HD%%i%$%V%i%je(Bdbme$B$N%3%s%Q%$%k$Ge(BEncoding::ConverterNotFoundError
e$B$,=P$F<:GT$7$^$9!#e(B

dbme$B$8$c$J$/$F$=$N<!$Ne(Bdigeste$B$N%3%s%Q%$%k$H$$$&$+e(BMakefilee$B$N:n@.e(B
e$B=`HwCf$K5/$-$F$$$^$9!#e(B

e$B;~4V$,B-$j$J$/$F$$$^$$$A860x$,DI$$$-$l$J$$$N$G$9$,!"e(Bminiruby
e$B$Ge(Bmkmfe$B$re(Brequiree$B$9$k$He(B$stdout.external_encodinge$B$,e(BASCII-8BITe$B$Ke(B
e$B@_Dj$5$l$k$h$&$K8+$($k$N$,5$$K$J$j$^$9!#e(B

e$B$=$l$G$O!#e(B


#3

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: “U.Nakamura” removed_email_address@domain.invalid
Subject: [ruby-dev:36797] Re: ConverterNotFoundError while making Ruby
in Windows(trunk)
Date: Mon, 20 Oct 2008 15:03:54 +0900
Message-ID: removed_email_address@domain.invalid

dbme$B$8$c$J$/$F$=$N<!$Ne(Bdigeste$B$N%3%s%Q%$%k$H$$$&$+e(BMakefilee$B$N:n@.e(B
e$B=`HwCf$K5/$-$F$$$^$9!#e(B

extconf.rb e$B$NCf$G=PNO$7$h$&$H$7$?:]$K=P$k$h$&$G$9$M!%e(B

e$B;~4V$,B-$j$J$/$F$$$^$$$A860x$,DI$$$-$l$J$$$N$G$9$,!"e(Bminiruby
e$B$Ge(Bmkmfe$B$re(Brequiree$B$9$k$He(B$stdout.external_encodinge$B$,e(BASCII-8BITe$B$Ke(B
e$B@_Dj$5$l$k$h$&$K8+$($k$N$,5$$K$J$j$^$9!#e(B

e$BF1$8$/860x$ODI$C$F$$$J$$$N$G$9$,!$e(Bextconf.rb e$B$N>e$Ge(B

p 999 #=> OK
puts 999 #=> OK Fixnum e$B$Oe(B OK ?

p 999999999999999999999 #=> NG
puts 999999999999999999999 #=> NG Bignum e$B$Oe(B NG

s = ‘99999999999999999999’
p s #=> NG
puts s #=> OK
puts s.inspect #=> NG

puts ‘“99999999999999999999”’ #=> OK

puts s.encoding.to_s #=> OK “US-ASCII”
puts s.inspect.encoding.to_s #=> OK “US-ASCII”

e$B$J$I$H!VFf!W$J>u67$K$J$k$h$&$G$9!%e(B

e$B!%!%!%$H=q$$$?$H$3$m$Ge(B revision 19854 e$B$K>e$,$C$?$h$&$J$N$Ge(B
e$B$=$A$i$G%F%9%H$7$F$_$?$N$G$9$,!$0lIt$O2~A1$7$?$h$&$G$"$k$b$N$N!$e(B
e$B$^$@40A4$G$O$J$$$h$&$G$9!%e(B
e$B>e5-$HF1$8Nc$@$He(B

p 999 #=> OK
puts 999 #=> OK Fixnum e$B$Oe(B OK ?

p 999999999999999999999 #=> NG
puts 999999999999999999999 #=> NG Bignum e$B$Oe(B NG

s = ‘99999999999999999999’
p s #=> NG
puts s #=> OK
puts s.inspect #=> OK e$B2~A1!)e(B

puts ‘“99999999999999999999”’ #=> OK

puts s.encoding.to_s #=> OK “ASCII-8BIT” e$BJQ99!)e(B
puts s.inspect.encoding.to_s #=> OK “ASCII-8BIT” e$BJQ99!)e(B

e$B$H$J$j$^$9e(B

ruby1.9 2008-10-20 on VineLinux-3.2 e$B$G$9!%e(B


#4

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:36797] Re: ConverterNotFoundError while making
Ruby in Windows(trunk)”
on Oct.20,2008 15:03:54, removed_email_address@domain.invalid wrote:

e$B;~4V$,B-$j$J$/$F$$$^$$$A860x$,DI$$$-$l$J$$$N$G$9$,!"e(Bminiruby
e$B$Ge(Bmkmfe$B$re(Brequiree$B$9$k$He(B$stdout.external_encodinge$B$,e(BASCII-8BITe$B$Ke(B
e$B@_Dj$5$l$k$h$&$K8+$($k$N$,5$$K$J$j$^$9!#e(B

IO#reopene$B$G!"%P%$%J%j%b!<%I$Ne(Bioe$B$r0z?t$H$7$FEO$9$H!“85$Ne(Bioe$B$”$ke(B
e$B$$$O0z?t$Ne(Bioe$B$N%(%s%3!<%G%#%s%0@_Dj$K4X$o$j$J$/!“6/@)E*$Ke(B
external_encodinge$B$,e(BASCII-8BITe$B$K@_Dj$5$l$k$N$,860x$G$”$k$h$&$Ge(B
e$B$9!#e(B

p $stdout.external_encoding #=> nil
f = open(“aaa”, “wb”)
p f.external_encoding #=> nil
$stdout.reopen(f)
p $stdout.external_encoding #=> “ASCII-8BIT”

e$BD>$7J}$H$7$F$O!"e(B
(1) io_reopen()e$B$NCf$Ge(Brb_io_binmode()e$B8F$S=P$7D>8e$Ke(B
fptr->encs = orig->encs;
e$B$J$I$H$9$ke(B
e$B$H$$$&$N$,;W$$$D$-$^$7$?$,!“G0$N$?$a$Ke(Brb_io_binmode()e$B$r8F$S=Pe(B
e$B$7$F$$$k$H$3$m$rC5$7$F$_$k$H!”$3$3$G%(%s%3!<%G%#%s%0$,>!<j$Ke(B
e$BJQ$o$C$F$7$^$&$3$H$rA[Dj$7$F$$$k$H$O;W$($J$$%3!<%I$,;68+$5$le(B
e$B$^$9!#e(B
e$B$H$$$&$o$1$G!“e(B
(2) rb_io_binmode()e$BCf$G$Ne(Bfptr->encse$B$N@_Dj$r:o=|$9$ke(B
e$B$N$,$$$$$N$G$O$J$$$+$H;W$&$N$G$9$,!”$J$<$3$3$Ge(Bencse$B$r@_Dj$7$Fe(B
e$B$$$k$N$+$o$+$i$J$$$N$G>C$7$F$$$$$N$+$I$&$+H=CG$G$-$^$;$s!#e(B

e$B$I$&$9$l$P$$$$$G$7$g$&e(B?

e$B$H$$$&$+$I$&$K$+$7$F$/$@$5$$e(B ^^;

e$B$=$l$G$O!#e(B


#5

In article removed_email_address@domain.invalid,
“U.Nakamura” removed_email_address@domain.invalid writes:

e$B$N$,$$$$$N$G$O$J$$$+$H;W$&$N$G$9$,!"$J$<$3$3$Ge(Bencse$B$r@_Dj$7$Fe(B
e$B$$$k$N$+$o$+$i$J$$$N$G>C$7$F$$$$$N$+$I$&$+H=CG$G$-$^$;$s!#e(B

e$BJQ99$N0U?^$Oe(B IO#binmode e$B$,e(B ASCII-8BIT
e$B$K$b$9$k$H$$$&$b$N$J$se(B
e$B$G$9$,!"$A$g$C$H1F6A$,6/$9$.$^$7$?$+$M!#<e$a$F$_$^$7$?!#e(B

e$BGX7J$H$7$F$O!“e(Bdefault_internal e$B$NF3F~$KH<$$e(B “rb” e$B$Ge(B
open e$B$7e(B
e$B$F$b%P%$%J%j$,%P%$%HNs$H$7$F$=$N$^$^FI$_$3$a$J$$$3$H$,$G$F$-e(B
e$B$?$3$H$,$”$j$^$9!#$G!"%P%$%J%j%b!<%I$r6/2=$7$h$&$H$$$&OC$,$"$Ce(B
e$B$F!"$=$N$R$H$D!"$H$$$&!#e(B


#6

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:36807] Re: ConverterNotFoundError while making
Ruby in Windows(trunk)”
on Oct.21,2008 01:02:53, removed_email_address@domain.invalid wrote:

e$BJQ99$N0U?^$Oe(B IO#binmode e$B$,e(B ASCII-8BIT e$B$K$b$9$k$H$$$&$b$N$J$se(B
e$B$G$9$,!"$A$g$C$H1F6A$,6/$9$.$^$7$?$+$M!#<e$a$F$_$^$7$?!#e(B

e$BDL$k$h$&$K$J$j$^$7$?!#$"$j$,$H$&$4$6$$$^$9!#e(B

e$BGX7J$H$7$F$O!“e(Bdefault_internal e$B$NF3F~$KH<$$e(B “rb” e$B$Ge(B open e$B$7e(B
e$B$F$b%P%$%J%j$,%P%$%HNs$H$7$F$=$N$^$^FI$_$3$a$J$$$3$H$,$G$F$-e(B
e$B$?$3$H$,$”$j$^$9!#$G!"%P%$%J%j%b!<%I$r6/2=$7$h$&$H$$$&OC$,$"$Ce(B
e$B$F!"$=$N$R$H$D!"$H$$$&!#e(B

e$B$3$l$C$F@h=5$N%_!<%F%#%s%0$G=P$?$s$G$7$g$&$+e(B?

e$B0d48$J$,$i:G6ae(B(universal
newlinee$BF3F~8ee(B)e$B$N%P%$%J%j%b!<%I$K4X$9e(B
e$B$k5DO@$r$^$C$?$/CN$i$J$$$N$G$9$,!"$I$C$+$K>pJs$,=P$F$?$j$7$^e(B
e$B$9$G$7$g$&$+!#e(B

e$B$=$l$G$O!#e(B


#7

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

In message “Re: [ruby-dev:36807] Re: ConverterNotFoundError while making
Ruby in Windows(trunk)”
on Tue, 21 Oct 2008 01:02:53 +0900, Tanaka A. removed_email_address@domain.invalid
writes:

|e$BGX7J$H$7$F$O!“e(Bdefault_internal e$B$NF3F~$KH<$$e(B “rb” e$B$Ge(B open e$B$7e(B
|e$B$F$b%P%$%J%j$,%P%$%HNs$H$7$F$=$N$^$^FI$_$3$a$J$$$3$H$,$G$F$-e(B
|e$B$?$3$H$,$”$j$^$9!#$G!"%P%$%J%j%b!<%I$r6/2=$7$h$&$H$$$&OC$,$"$Ce(B
|e$B$F!"$=$N$R$H$D!"$H$$$&!#e(B

e$B$G!“e(B"rb"e$B$Ge(BASCII-8BITe$B$GFI$9~$`$h$&$K$7$F$$^$7$?!#e(B
e$B0l1~e(Btest/ruby/test_*.rbe$B$OAv$i$;$^$7$?$,!”$[$+$K1F6A$,$"$k$he(B
e$B$&$G$7$?$i$*CN$i$;$/$@$5$$!#e(B


#8

In article removed_email_address@domain.invalid,
“U.Nakamura” removed_email_address@domain.invalid writes:

e$B$3$l$C$F@h=5$N%_!<%F%#%s%0$G=P$?$s$G$7$g$&$+e(B?

e$B$O$$!#e(B

e$B0d48$J$,$i:G6ae(B(universal newlinee$BF3F~8ee(B)e$B$N%P%$%J%j%b!<%I$K4X$9e(B
e$B$k5DO@$r$^$C$?$/CN$i$J$$$N$G$9$,!"$I$C$+$K>pJs$,=P$F$?$j$7$^e(B
e$B$9$G$7$g$&$+!#e(B

e$B$^$D$b$H$5$s$N%3%_%C%He(B?

e$B%_!<%F%#%s%0$G$Oe(B open e$B$Ne(B mode
e$B$HF0:n$NI=$r$^$D$b$H$5$s$,=q$-e(B
e$B$+$1$?$1$I;~4V@Z$l$G40@.$7$^$;$s$G$7$?!#e(B


#9

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:36819] Re: ConverterNotFoundError while making
Ruby in Windows(trunk)”
on Oct.21,2008 09:35:17, removed_email_address@domain.invalid wrote:

e$B0d48$J$,$i:G6ae(B(universal newlinee$BF3F~8ee(B)e$B$N%P%$%J%j%b!<%I$K4X$9e(B
e$B$k5DO@$r$^$C$?$/CN$i$J$$$N$G$9$,!"$I$C$+$K>pJs$,=P$F$?$j$7$^e(B
e$B$9$G$7$g$&$+!#e(B

e$B$^$D$b$H$5$s$N%3%_%C%He(B?

e$B%_!<%F%#%s%0$G$Oe(B open e$B$Ne(B mode e$B$HF0:n$NI=$r$^$D$b$H$5$s$,=q$-e(B
e$B$+$1$?$1$I;~4V@Z$l$G40@.$7$^$;$s$G$7$?!#e(B

e$B$3$&$G$7$g$&$+e(B…

e$B"(e(B"r"e$B!&e(B"w"e$B$,%F%-%9%H%b!<%I$H%P%$%J%j%b!<%I$N$I$A$i$K$J$k$+$Oe(B
e$B4D6-0MB8$J$N$G0J2<$Oe(Bte$B$He(Bbe$B$rL@<($9$k!#e(B

  • “rt” e$B$N>l9ge(B
    external_encodinge$B$Oe(Bnil
    default_externale$B$,e(BASCIIe$B8_49$G$J$1$l$PNc30e(B
    e$B8e$Ge(Bbinmodee$B$r8F$V$He(BASCII-8BITe$B$KJQ$o$ke(B

  • “rb” e$B$N>l9ge(B
    external_encodinge$B$Oe(BASCII-8BIT

  • “rt:enc” e$B$N>l9ge(B
    external_encodinge$B$Oe(Benc
    ence$B$,e(BASCIIe$B8_49$G$J$1$l$PNc30e(B
    e$B8e$Ge(Bbinmodee$B$r8F$V$He(BASCII-8BITe$B$KJQ$o$ke(B

  • “rb:enc” e$B$N>l9ge(B
    external_encodinge$B$Oe(Benc
    e$B8e$Ge(Bbinmodee$B$r8F$V$He(BASCII-8BITe$B$KJQ$o$ke(B -> e$B%P%0e(B?

  • “wt” e$B$N>l9ge(B
    external_encodinge$B$Oe(Bnil
    e$B8e$Ge(Bbinmodee$B$r8F$V$He(BASCII-8BITe$B$KJQ$o$ke(B

  • “wb” e$B$N>l9ge(B
    external_encodinge$B$Oe(BASCII-8BIT

  • “wt:enc” e$B$N>l9ge(B
    external_encodinge$B$Oe(Benc
    e$B8e$Ge(Bbinmodee$B$r8F$V$He(BASCII-8BITe$B$KJQ$o$ke(B

  • “wb:enc” e$B$N>l9ge(B
    external_encodinge$B$Oe(Benc
    e$B8e$Ge(Bbinmodee$B$r8F$V$He(BASCII-8BITe$B$KJQ$o$ke(B -> e$B%P%0e(B?

e$B$=$l$G$O!#e(B


#10

In article
removed_email_address@domain.invalid,
“Shugo M.” removed_email_address@domain.invalid writes:

e$B$3$NJQ99e(B(r19860)e$B$G!"%=%1%C%H$N%F%9%H$,e(B1Fe$B$K$J$C$F$7$^$$$^$7$?!#e(B

e$B$"$!!"$?$7$+$K!#e(B

e$B%=%1%C%H$K$D$$$F$O%P%$%J%j$H$7$F07$&e(B(ASCII-8BITe$B!&L5JQ49e(B)e$B$?$a$Ke(Brb_io_binmode()e$B$re(B
e$B8F$s$G$$$?$N$G$9$,!"$I$&$9$k$N$,$h$$$G$7$g$&$+!#e(B
rb_io_ascii8bit_binmode()e$B$Oe(Bstatice$B$N$h$&$G$9$,!"8x3+$9$k$N$O$^$:$$$G$9$+e(B?

e$B$$$d!"$H$/$KLdBj$O$"$j$^$;$s!#e(B


#11

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

2008/10/21 12:35 Tanaka A. removed_email_address@domain.invalid:

e$B%=%1%C%H$K$D$$$F$O%P%$%J%j$H$7$F07$&e(B(ASCII-8BITe$B!&L5JQ49e(B)e$B$?$a$Ke(Brb_io_binmode()e$B$re(B
e$B8F$s$G$$$?$N$G$9$,!"$I$&$9$k$N$,$h$$$G$7$g$&$+!#e(B
rb_io_ascii8bit_binmode()e$B$Oe(Bstatice$B$N$h$&$G$9$,!"8x3+$9$k$N$O$^$:$$$G$9$+e(B?

e$B$$$d!"$H$/$KLdBj$O$"$j$^$;$s!#e(B

e$B$=$N$h$&$K=$@5$7$^$7$?!#e(B


#12

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

2008/10/21 1:02 Tanaka A. removed_email_address@domain.invalid:

e$BJQ99$N0U?^$Oe(B IO#binmode e$B$,e(B ASCII-8BIT e$B$K$b$9$k$H$$$&$b$N$J$se(B
e$B$G$9$,!"$A$g$C$H1F6A$,6/$9$.$^$7$?$+$M!#<e$a$F$_$^$7$?!#e(B

e$B$3$NJQ99e(B(r19860)e$B$G!"%=%1%C%H$N%F%9%H$,e(B1Fe$B$K$J$C$F$7$^$$$^$7$?!#e(B

$ make test-all TESTS=test/socket
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb
./runruby.rb --extout=.ext – “./test/runner.rb” test/socket
Loaded suite ./test/runner
Started
…F…
Finished in 0.016884 seconds.

  1. Failure:
    test_encoding(TestTCPSocket)
    [/home/shugo/src/ruby-trunk/test/socket/test_tcp.rb:37]:
    <#Encoding:ASCII-8BIT> expected but was
    <#Encoding:UTF-8>.

28 tests, 116 assertions, 1 failures, 0 errors, 0 skips
make: *** [test-all] e$B%(%i!<e(B 1

e$B%=%1%C%H$K$D$$$F$O%P%$%J%j$H$7$F07$&e(B(ASCII-8BITe$B!&L5JQ49e(B)e$B$?$a$Ke(Brb_io_binmode()e$B$re(B
e$B8F$s$G$$$?$N$G$9$,!"$I$&$9$k$N$,$h$$$G$7$g$&$+!#e(B
rb_io_ascii8bit_binmode()e$B$Oe(Bstatice$B$N$h$&$G$9$,!"8x3+$9$k$N$O$^$:$$$G$9$+e(B?


#13

e$B=uED$G$9!#e(B

Yukihiro M. wrote:

e$B$&$G$7$?$i$*CN$i$;$/$@$5$$!#e(B
e$BJV;v$,CY$/$J$j$^$7$?$,!"%3%s%Q%$%k!"%j%s%/$G$-$k$h$&$K$J$j$^$7$?!#e(B
e$B$"$j$,$H$&$4$6$$$^$7$?!#e(B

e$B=uEDe(B e$B2m5*e(B