Skip to content

Commit b527ec0

Browse files
committed
remove obsolete workaround
This appears to be a workaround for Windows XP behavior. It is unnecessary now. ref: da4d3e8
1 parent 9f266ae commit b527ec0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

io.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,9 +2635,6 @@ io_fillbuf(rb_io_t *fptr)
26352635
fptr->rbuf.len = 0;
26362636
fptr->rbuf.capa = IO_RBUF_CAPA_FOR(fptr);
26372637
fptr->rbuf.ptr = ALLOC_N(char, fptr->rbuf.capa);
2638-
#ifdef _WIN32
2639-
fptr->rbuf.capa--;
2640-
#endif
26412638
}
26422639
if (fptr->rbuf.len == 0) {
26432640
retry:
@@ -3305,10 +3302,6 @@ io_shift_cbuf(rb_io_t *fptr, int len, VALUE *strp)
33053302
static int
33063303
io_setstrbuf(VALUE *str, long len)
33073304
{
3308-
#ifdef _WIN32
3309-
if (len > 0)
3310-
len = (len + 1) & ~1L; /* round up for wide char */
3311-
#endif
33123305
if (NIL_P(*str)) {
33133306
*str = rb_str_new(0, len);
33143307
return TRUE;

0 commit comments

Comments
 (0)