Skip to content

Commit 864b183

Browse files
committedJan 30, 2025··
add news and pcmt
1 parent 2fb631e commit 864b183

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
 

‎news/fix_win.rst

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* Removed `restore_stdout` function and wrapper.
16+
17+
**Fixed:**
18+
19+
* Fixed `SystemError` and `MemoryError` for `redirect_stdout` on Windows with Python 3.13.
20+
21+
**Security:**
22+
23+
* <news item>

‎src/extensions/pdffit2module/PyFileStreambuf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class PyFileStreambuf : public std::streambuf
8080
{
8181
PyObject* py_str = PyUnicode_DecodeUTF8(s, n, "replace");
8282
if (!py_str) { return 0; }
83-
PyObject* rv = PyObject_CallMethod(py_file, "write", "O", py_str);
83+
PyObject* rv = PyObject_CallMethod(py_file, "write", "O", py_str);
8484
Py_DECREF(py_str);
8585
if (rv) { Py_DECREF(rv); }
8686
return n;

0 commit comments

Comments
 (0)
Please sign in to comment.