Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf-8_to_iso-8859-1 #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spylon_kernel/scala_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def _read_stream(self, fd, fn):
# and greater than a single system page.
buff = fd.read(8192)
if buff:
fn(buff.decode('utf-8'))
fn(buff.decode('iso-8859-1'))

def interpret(self, code):
"""Interprets a block of Scala code.
Expand Down Expand Up @@ -412,7 +412,7 @@ def interpret(self, code):

try:
res = self.jimain.interpret(code, False)
pyres = self.jbyteout.toByteArray().decode("utf-8")
pyres = self.jbyteout.toByteArray().decode("iso-8859-1")
# The scala interpreter returns a sentinel case class member here
# which is typically matched via pattern matching. Due to it
# having a very long namespace, we just resort to simple string
Expand Down