Pidgeot / python-lnp

Cross-platform re-implementation of the Lazy Newb Pack launcher.
ISC License
65 stars 10 forks source link

Problem with russian language #70

Closed Pidgeot closed 4 years ago

Pidgeot commented 4 years ago

Referencing issue from github.

When start game it has error
./startlnp
Traceback (most recent call last):
File "", line 11, in
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.lnp", line 41, in init
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.lnp", line 89, in detect_basedir
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/posixpath", line 369, in abspath
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)

P.S: Problem was in russian letters in folder name
I resolve it change folder name

[Issue created by fricy: 2014-12-31] [Last updated on bitbucket: 2015-01-06]

[Comment created by Pidgeot: 2015-01-06] If Unicode errors occur during startup, show explanatory message.

Fixes #47 (to the extent it can be fixed without removing Python 2 support).

→ <<cset 19eea0d27195>>

[Comment created by Pidgeot: 2014-12-31] Cross-posting from github issue:

Non-ASCII folder names are likely to cause issues since Python 2 is not fully Unicode, and there is, to my knowledge, no good way of building stand-alone executables using Python 3.