Skip to content

Commit 2fa0f15

Browse files
authored
Merge pull request #112 from xoduddk123/utf8_encoding
encoding: Modified to use utf-8 in fdopen()
2 parents e59d253 + e7940de commit 2fa0f15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cupshelpers/cupshelpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ def add_missing (exe):
859859
os.unlink (tmpfname)
860860
ppd.writeFd (tmpfd)
861861
os.lseek (tmpfd, 0, os.SEEK_SET)
862-
f = os.fdopen (tmpfd, "rt")
862+
f = os.fdopen (tmpfd, "rt", encoding="utf-8")
863863
search = "*cupsFilter:"
864864
for line in f:
865865
if line.startswith (search):

0 commit comments

Comments
 (0)