Commit 37726334 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix unicode issue

parent 69686408
...@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com ...@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog Changelog
========= =========
1.5.38 (06/2017)
- Fix unicode issue in Ada backend
1.5.37 (05/2017) 1.5.37 (05/2017)
- Fix Ada backend bug with sequence of literals in nested states - Fix Ada backend bug with sequence of literals in nested states
......
...@@ -1418,14 +1418,14 @@ def _task_forloop(task, **kwargs): ...@@ -1418,14 +1418,14 @@ def _task_forloop(task, **kwargs):
stmt.extend(list_stmt) stmt.extend(list_stmt)
local_decl.extend(list_local) local_decl.extend(list_local)
stmt.extend(['declare', stmt.extend(['declare',
'{} : {};'.format(loop['var'], u'{} : {};'.format(loop['var'],
type_name(loop['type'])), type_name(loop['type'])),
'', u'',
'begin', u'begin',
'for {it}_idx in {rc} loop'.format(it=loop['var'], u'for {it}_idx in {rc} loop'.format(it=loop['var'],
rc=range_str), rc=range_str),
'{it} := {var}({it}_idx);'.format(it=loop['var'], u'{it} := {var}({it}_idx);'.format(it=loop['var'],
var=list_payload)]) var=list_payload)])
try: try:
code_trans, local_trans = generate(loop['transition']) code_trans, local_trans = generate(loop['transition'])
if local_trans: if local_trans:
...@@ -1439,7 +1439,7 @@ def _task_forloop(task, **kwargs): ...@@ -1439,7 +1439,7 @@ def _task_forloop(task, **kwargs):
except AttributeError: except AttributeError:
stmt.append('null;') stmt.append('null;')
if loop['range'] and loop['range']['step'] != 1: if loop['range'] and loop['range']['step'] != 1:
stmt.append('{it} := {it} + {step};'.format(it=loop['var'], stmt.append(u'{it} := {it} + {step};'.format(it=loop['var'],
step=loop['range']['step'])) step=loop['range']['step']))
stmt.append('end loop;') stmt.append('end loop;')
if (loop['range'] and loop['range']['step'] != 1) or loop['list']: if (loop['range'] and loop['range']['step'] != 1) or loop['list']:
......
...@@ -139,7 +139,7 @@ except ImportError: ...@@ -139,7 +139,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse'] __all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.37' __version__ = '1.5.38'
if hasattr(sys, 'frozen'): if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated) # 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