crashed on taking screenshot when the directory contains non-ascii characters

Bug #943700 reported by Koichi Akabe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ren'Py
Fix Released
Medium
Tom Rothamel

Bug Description

Ren'Py 6.13.8 crashed on taking screen-shot when Ren'Py is on the directory which contains non-ascii characters, like "/home/koichi/デスクトップ/renpy-6.13.8"

Step to reproduce:
1. download and extract Ren'Py SDK to the directory which contains non-ascii characters
2. launch $ python renpy.py
3. choose Tutorial Game
4. press "s" to take screenshot
5. The following message is shown

Full traceback:
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/execution.py", line 261, in run
    node.execute()
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/ast.py", line 1413, in execute
    self.call("execute")
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/ast.py", line 1426, in call
    renpy.statements.call(method, parsed, *args, **kwargs)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/statements.py", line 100, in call
    return method(parsed, *args, **kwargs)
  File "common/00statements.rpy", line 540, in execute_call_screen
    store._return = renpy.call_screen(name, **kwargs)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/exports.py", line 1533, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/ui.py", line 237, in interact
    rv = renpy.game.interface.interact(**kwargs)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 1798, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 2036, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 246, in visit_all
    d.visit_all(callback)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 246, in visit_all
    d.visit_all(callback)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 246, in visit_all
    d.visit_all(callback)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 246, in visit_all
    d.visit_all(callback)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 248, in visit_all
    callback(self)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/core.py", line 2036, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/screen.py", line 153, in per_interact
    self.update()
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/display/screen.py", line 245, in update
    self.screen.function(**self.scope)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/screenlang.py", line 1166, in __call__
    renpy.python.py_exec_bytecode(self.code.bytecode, locals=_scope)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/python.py", line 977, in py_exec_bytecode
    exec bytecode in globals, locals
  File "common/00screen.rpy", line 1823, in <module>
    text message at _notify_transform
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/ui.py", line 435, in __call__
    w = self.function(*args, **keyword)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/text/text.py", line 1035, in __init__
    self.set_text(text, scope, substitute)
  File "/home/koichi/デスクトップ/renpy-6.13.8/renpy/text/text.py", line 1080, in set_text
    i = unicode(i)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 33: ordinal not in range(128)

While running game code:
  File "tutorial/game/script.rpy", line 107, in script
            call screen tutorials(adj=tutorials_adjustment)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 33: ordinal not in range(128)
"

Revision history for this message
Tom Rothamel (renpytom) wrote :

This will be fixed in 6.13.9. Thank you for reporting it.

Changed in renpy:
assignee: nobody → Tom Rothamel (renpytom)
milestone: none → 6.13.9
importance: Undecided → Medium
status: New → Fix Committed
Tom Rothamel (renpytom)
Changed in renpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.