Load script with binmode


#1

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

Golfe$B$C$F$F5$IU$$$?$N$G$9$,!“e(BWindowse$B$G$O%9%/%j%W%HCf$Ke(B\032(^Z)
e$B$,4^$^$l$F$$$k$H!”$=$3$G%9%/%j%W%H$NFI$9~$$,=N;$7$F$7$^$$e(B
e$B$^$9!#e(B
e$B$=$s$J%9%/%j%W%H$r=q$/e(B/e$B;H$&$3$H$OLGB?$K$J$$$H$O;W$$$^$9$,!"$$e(B
e$B$A$
$&%Q%C%A$G$9!#e(B

Index: iseq.c

— iseq.c (revision 11607)
+++ iseq.c (working copy)
@@ -424,7 +424,7 @@
rb_scan_args(argc, argv, “11”, &file, &opt);
fname = StringValueCStr(file);

  • f = rb_file_open(fname, “r”);
  • f = rb_file_open(fname, “rb”);

    parser = rb_parser_new();
    node = rb_parser_compile_file(parser, fname, f, NUM2INT(line));
    Index: ruby.c
    ===================================================================
    — ruby.c (revision 11607)
    +++ ruby.c (working copy)
    @@ -909,7 +909,7 @@
    }
    fclose(fp);

  • f = rb_file_open(fname, “r”);
  • f = rb_file_open(fname, “rb”);
    #if defined DOSISH || defined CYGWIN
    {
    char *ext = strrchr(fname, ‘.’);

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