jayurbain / mitlm

Automatically exported from code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

ZFile class uses popen with "rb"/"wb" which fails on some linux platforms #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compile gcc 4.x linux platform 
2. run with gzip files on linux

What is the expected output? What do you see instead?

ZFile._file is null because popen() fails

What version of the product are you using? On what operating system?

0.4 running on ubuntu 8.04

Please provide any additional information below.

the fix is to change mode "rb" and "wb" to "r" and "w".  popen() 
implementations do not always 
support "rb" or "wb" modes (see: 
http://opengroup.org/onlinepubs/007908775/xsh/popen.html)

Original issue reported on code.google.com by swa...@gmail.com on 13 May 2009 at 12:11

GoogleCodeExporter commented 8 years ago
Thank you for your report.

The issue should be fixed in subversion revision 48.

Original comment by giuliop...@gmail.com on 29 Nov 2010 at 10:00

GoogleCodeExporter commented 8 years ago

Original comment by giuliop...@gmail.com on 29 Jan 2013 at 7:09