# Load script with binmode

**URL:** <https://www.ruby-forum.com/t/load-script-with-binmode/84095>\
**Category:** Development\
**Created:** [February 1, 2007, 11:34am UTC](https://www.ruby-forum.com/t/load-script-with-binmode/84095 "2007-02-01T11:34:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![U.Nakamura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/b5ac83/32.png) [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Post date:** [February 1, 2007, 11:34am UTC](https://www.ruby-forum.com/t/load-script-with-binmode/84095/1 "2007-02-01T11:34:58Z")

</div>

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”);

- 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
