Commit 25e0eaea authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files
parents ca78eae1 ba4649d7
......@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.36 (05/2017)
- Fix Unicode issues in Ada backend
1.5.35 (05/2017)
- Fix FOR LOOPS code generation
......
......@@ -1991,15 +1991,15 @@ def _append(expr):
local_decl.extend(left_local)
local_decl.extend(right_local)
left = '{}{}'.format(left_str, string_payload(expr.left, left_str) if
left = u'{}{}'.format(left_str, string_payload(expr.left, left_str) if
isinstance(expr.left, (ogAST.PrimVariable,
ogAST.PrimConstant)) else '')
right = '{}{}'.format(right_str, string_payload(expr.right, right_str) if
right = u'{}{}'.format(right_str, string_payload(expr.right, right_str) if
isinstance(expr.right, (ogAST.PrimVariable,
ogAST.PrimConditional,
ogAST.PrimConstant)) else '')
ada_string = '(({}) & ({}))'.format(left, right)
ada_string = u'(({}) & ({}))'.format(left, right)
return stmts, unicode(ada_string), local_decl
......@@ -2774,7 +2774,7 @@ def append_size(append):
else:
# Must be a variable of type SEQOF
_, inner, _ = expression(each)
result += '{}.Length'.format(inner)
result += u'{}.Length'.format(inner)
return result
......
......@@ -139,7 +139,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.35'
__version__ = '1.5.36'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment