Wouldn't it also work and be a better solution to just open file expliticly in "translated" mode by adding a "t" in `fp = xfdopen(helper.out, "r");` in line 236? IIRC, the "t" should be just irgnored on Linux.