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
Changelog
=========
1.5.38 (06/2017)
- Fix unicode issue in Ada backend
1.5.37 (05/2017)
- Fix Ada backend bug with sequence of literals in nested states
......
......@@ -1418,13 +1418,13 @@ def _task_forloop(task, **kwargs):
stmt.extend(list_stmt)
local_decl.extend(list_local)
stmt.extend(['declare',
'{} : {};'.format(loop['var'],
u'{} : {};'.format(loop['var'],
type_name(loop['type'])),
'',
'begin',
'for {it}_idx in {rc} loop'.format(it=loop['var'],
u'',
u'begin',
u'for {it}_idx in {rc} loop'.format(it=loop['var'],
rc=range_str),
'{it} := {var}({it}_idx);'.format(it=loop['var'],
u'{it} := {var}({it}_idx);'.format(it=loop['var'],
var=list_payload)])
try:
code_trans, local_trans = generate(loop['transition'])
......@@ -1439,7 +1439,7 @@ def _task_forloop(task, **kwargs):
except AttributeError:
stmt.append('null;')
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']))
stmt.append('end loop;')
if (loop['range'] and loop['range']['step'] != 1) or loop['list']:
......
......@@ -139,7 +139,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.37'
__version__ = '1.5.38'
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