rdocとencoding

Debiane$B%Q%C%1!<%8$r$$$C$7$g$K%a%s%F%J%s%9$7$F$$$ke(B
daigoe$B$5$s$K65$($F$b$i$C$?$N$G$9$,!"e(B
1.9.0e$B$Ne(Bgeme$B$Ge(Brgle$B$r%$%s%9%H!<%k$7$h$&$H$9$k$He(B
rdoce$B$N=hM}$NCf$G%3%1$F$7$^$&$h$&$G$9!#e(B


$ rdoc lib/rgl/rdot.rb

                        rdot.rb: m.

RDoc failure in lib/rgl/rdot.rb at or around line 59 column 0

Before reporting this, could you check that the file
youre documenting compiles cleanlyRDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

/usr/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1871:in tr': invalid mbstring sequence (ArgumentError) from /usr/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1871:inparse_constant
from /usr/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1646:in
parse_statements' from /usr/lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1792:inparse_module

lib/rgl/rdot.rbe$B$Ne(B39e$B9TL$N%3%a%s%H$Ke(B
iso-8859-9e$B$J%"%/%;%s%HIU$-$NJ8;ze(B(e$B$,$"$C$Fe(B
ja_JP.UTF-8e$B$de(Bja_JP.EUC-JPe$B$J$I$G$Oe(B
[email protected](B(?)e$B$,5/$-$k$h$&$G$9!#e(B

LANG=Ce$B$de(Bja_JP.SJISe$B!"e(Bruby -Kne$B$J$I$G5/F0$9$k$He(B
e$B>e$N$h$&$JNc30$K$O$J$j$^$;$s!#e(B

e$B$I$&$9$k$N$,NI$$$N$+J,$+$j$^$;$s$,e(B
e$B%G%U%)%k%H$G$Oe(BASCII-8BITe$B$rA[Dj$7$F$$$$Fe(B(rbe$B$Ge(Bopene$B$9$ke(B?)
Rubye$B%9%/%j%W%H$J$i%(%s%3!<%G%#%s%0$Ne(B
magic commente$B$r8+$F$/$l$k$h$&$K$7$F$b$i$&$H$+!"e(B
e$B$=$&$G$J$1$l$P%
%W%7%g%s$G;XDj$G$-$k$h$&$K$9$k$H$+!"e(B
e$B$H$b$+$/2?$+BP=h$,I,MW$G$O$J$$$+$J$H;W$$$^$9!#e(B

In article [email protected],
akira yamada / e$B$d$^[email protected]$"$-$ie(B [email protected] writes:

Rubye$B%9%/%j%W%H$J$i%(%s%3!<%G%#%s%0$Ne(B
magic commente$B$r8+$F$/$l$k$h$&$K$7$F$b$i$&$H$+!"e(B

e$B$$$A$*$&!e(Brdoc e$B$O$9$G$K8+$k$h$&$KBP=h$7$F$$j$^$9!#e(B

e$B<j85$Ge(B rdot.rb [email protected],$Ke(B

-- coding: iso-8859-9 --

e$B$H$$$&9T$rB-$7$?$H$3$m!"e(Brdoc e$B$G=hM}$G$-$^$7$?!#e(B

e$B$=$A$i$G$OF0$+$J$+$C$?$G$7$g$&$+e(B?

[email protected]$7!"$3$N%U%!%$%k$KF~$C$F$$$k$N$Oe(B 0x92 e$B$J$N$G!"e(Biso-8859-9
e$B$G$O$J$$$h$&$K;W$$$^$9!#e(B

e$B$"$H!"e(Brdoc e$B$Oe(B Encoding.default_external
e$B$K1F6A$5$l$k$Y$-$G$Oe(B
e$B$J$$$+$b$7$l$^$;$s$M!#e(B

At 01:17 07/12/28, Tanaka A. wrote:

e$B$"$H!"e(Brdoc e$B$Oe(B Encoding.default_external e$B$K1F6A$5$l$k$Y$-$G$Oe(B
e$B$J$$$+$b$7$l$^$;$s$M!#e(B

rdoc e$B$N>:Y$OCN$j$^$;$s$,!"%=!<%9%U%!%$%[email protected]$1$N:n6H$G$7$?$i!e(B
e$B%=!<%9%U%!%$%k$Ne(B encoding e$B$r=PNO%U%!%$%k$Ne(B encoding
e$B$K$9$k$N$Oe(B
e$B0l$D$N<j$G$9!#>/$J$/$H$be(B HTML e$B$N>l9g!#%F%-%9%H=PNO$J$i6&DL$Ne(B
encoding e$B$K$7$?$$$7!;XDj$,$J$+$C$?$ie(B default_external e$B$Ge(B
[email protected]$m$&$,!"$3$l$O$"$/$^$G$b=PNO$NOC$G$9!#J#?t$NF~NO%U%!%$%ke(B
e$B$r$^$H$a$k>l9g$K$O%=!<%9$Ne(B encoding e$B$,0c$&[email protected]$b$"$k$N$G!e(B
e$B;XDj$G$-$k$h$&$K$9$k$H!;XDj$,$J$+$C$?$ie(B default_external
e$B$K=PNO$9$k$H$+$K$J$k$N$+$J$"!"$H$$$&46$8$G$9$M!#e(B

e$B59$7$/$*4j$$$7$^$9!#e(B Martin.

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]