[pypy-issue] Issue #2293: Using codecs.open certian input causes a seek to crash (pypy/pypy)
New issue 2293: Using codecs.open certian input causes a seek to crash https://bitbucket.org/pypy/pypy/issues/2293/using-codecsopen-certian-input-causes-a Jean-Louis Fuchs: This is based on a [chardet-testfile](https://github.com/chardet/chardet/blob/master/tests/EUC-KR/jely.pe.kr.xml) I used code shrinker to create minimal example. To reproduce the problem: 1. Open the file with codecs.open 2. Read it with readlines 3. Then seek Example code and the problemdata is attached. This is the error: ``` #!bash $> python pypybug.py 시작합니 Traceback (most recent call last): File "pypybug.py", line 6, in f.seek(0) File "/home/ganwell/.pyenv/versions/pypy-5.1/lib-python/2.7/codecs.py", line 709, in seek self.writer.reset() IOError: File not open for writing ``` And the testcode: ``` #!python import codecs with codecs.open("problemdata", "r", encoding="EUC-KR") as f: for x in f.readlines(): print(x) f.seek(0) ``` ___ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue
[pypy-issue] Issue #2605: libress defines X509*__MISMATCH constants (pypy/pypy)
New issue 2605: libress defines X509*__MISMATCH constants https://bitbucket.org/pypy/pypy/issues/2605/libress-defines-x509-__mismatch-constants Jean-Louis Fuchs: My version of libressl (2.5.4) defines these constants X509_V_ERR_HOSTNAME_MISMATCH X509_V_ERR_EMAIL_MISMATCH X509_V_ERR_IP_ADDRESS_MISMATCH Patch tested against PyPy3.5 v5.8.0 release ___ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue
[pypy-issue] Issue #2606: tcl version detection with default (pypy/pypy)
New issue 2606: tcl version detection with default https://bitbucket.org/pypy/pypy/issues/2606/tcl-version-detection-with-default Jean-Louis Fuchs: On Alpine Linux the tcl version 8.6 but there is no special include dir. The following patch will make version 8.6 default. ___ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue
[pypy-issue] Issue #2607: Recommended include path for poll.h (pypy/pypy)
New issue 2607: Recommended include path for poll.h https://bitbucket.org/pypy/pypy/issues/2607/recommended-include-path-for-pollh Jean-Louis Fuchs: musl libc recommends including poll.h instead of sys/poll.h (usually the do this because it is defined in POSIX) ``` #!bash $> cat /usr/include/sys/poll.h #warning redirecting incorrect #include to #include ``` The patch is tested with PyPy3.5 v5.8.0 ___ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue
[pypy-issue] Issue #2608: make rfile stdio variable const (pypy/pypy)
New issue 2608: make rfile stdio variable const https://bitbucket.org/pypy/pypy/issues/2608/make-rfile-stdio-variable-const Jean-Louis Fuchs: On Alpine Linux build fails without this patch. I'm not sure if the patch will break other builds. If other builds fail: I'm not sure how to make a better patch. Let me know how to improve this patch. Tested with PyPy3.5 v5.8.0 release. ___ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue