Skip to content

Commit

Permalink
except, it's not utf8 over iom, only local
Browse files Browse the repository at this point in the history
  • Loading branch information
tomweber-sas committed Apr 26, 2018
1 parent 0d9cc6a commit f3a89ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions saspy/sasioiom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ def sasdata2dataframe(self, table: str, libref: str ='', dsopts: dict ={}, rowse
if datar.count(logcodeo) >= 1:
break
try:
data = self.stdout[0].recv(4096).decode(errors='replace')
data = self.stdout[0].recv(4096).decode(self.sascfg.encoding, errors='replace')
except (BlockingIOError):
data = b''

Expand Down Expand Up @@ -1332,7 +1332,7 @@ def sasdata2dataframe(self, table: str, libref: str ='', dsopts: dict ={}, rowse
else:
sleep(0.1)
try:
log = self.stderr[0].recv(4096).decode(errors='replace')
log = self.stderr[0].recv(4096).decode(self.sascfg.encoding, errors='replace')
except (BlockingIOError):
log = b''

Expand Down Expand Up @@ -1509,7 +1509,7 @@ def sasdata2dataframeCSV(self, table: str, libref: str ='', dsopts: dict ={}, te
return None

try:
data = self.stdout[0].recv(4096).decode(errors='replace')
data = self.stdout[0].recv(4096).decode(self.sascfg.encoding, errors='replace')
except (BlockingIOError):
data = b''

Expand Down

0 comments on commit f3a89ac

Please sign in to comment.