FreeBSD Bugzilla – Attachment 217444 Details for
Bug 248834
devel/py-appdirs: Configure phase fails with UnicodeDecodeError in 'ascii' codec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/py-appdirs: Backport explicit encoding patch
patch-devel_py-appdirs-1.4.4.txt (text/plain), 1.22 KB, created by
John W. O'Brien
on 2020-08-22 15:07:19 UTC
(
hide
)
Description:
devel/py-appdirs: Backport explicit encoding patch
Filename:
MIME Type:
Creator:
John W. O'Brien
Created:
2020-08-22 15:07:19 UTC
Size:
1.22 KB
patch
obsolete
>Index: devel/py-appdirs/files/patch-setup.py >=================================================================== >--- devel/py-appdirs/files/patch-setup.py (nonexistent) >+++ devel/py-appdirs/files/patch-setup.py (working copy) >@@ -0,0 +1,23 @@ >+commit 381d90dd40abf2e46200855c5bb248f0d68b147c >+Author: John W. O'Brien <john@saltant.com> >+Date: Fri Aug 21 21:37:08 2020 -0400 >+ >+ Explicitly decode appdirs.py as UTF-8 >+ >+--- setup.py.orig 2020-05-11 07:03:01 UTC >++++ setup.py >+@@ -1,4 +1,5 @@ >+ #!/usr/bin/env python >++from io import open >+ import sys >+ import os >+ import os.path >+@@ -15,7 +16,7 @@ if sys.version_info < (2, 7): >+ >+ >+ def read(fname): >+- inf = open(os.path.join(os.path.dirname(__file__), fname)) >++ inf = open(os.path.join(os.path.dirname(__file__), fname), encoding='utf8') >+ out = "\n" + inf.read().replace("\r\n", "\n") >+ inf.close() >+ return out > >Property changes on: devel/py-appdirs/files/patch-setup.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
john
:
maintainer-approval?
(
python
)
Actions:
View
|
Diff
Attachments on
bug 248834
: 217444