Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
python-adal
0001-Forcing-utf8-decoding.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Forcing-utf8-decoding.patch of Package python-adal
From 72341d1e3fc2b02504c42234434a894b9a916483 Mon Sep 17 00:00:00 2001 From: Ray Luo <rayluo@microsoft.com> Date: Fri, 2 Jun 2017 12:51:02 -0700 Subject: [PATCH] Forcing utf8 decoding Otherwise some locale uses default ascii decoding and can not handle BOM. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -Nru adal-0.4.5.orig/setup.py adal-0.4.5/setup.py --- adal-0.4.5.orig/setup.py 2017-02-27 23:02:17.000000000 +0100 +++ adal-0.4.5/setup.py 2017-07-10 15:07:25.697577653 +0200 @@ -27,12 +27,12 @@ #------------------------------------------------------------------------------ from setuptools import setup -import re +import re, io # setup.py shall not import adal __version__ = re.search( r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too - open('adal/__init__.py').read()).group(1) + io.open('adal/__init__.py', encoding='utf8').read()).group(1) # To build: # python setup.py sdist
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor