English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   support.FS-UAE (http://eab.abime.net/forumdisplay.php?f=122)
-   -   Launcher UnicodeDecodeError [solved] (http://eab.abime.net/showthread.php?t=66746)

degville 21 November 2012 15:16

Launcher UnicodeDecodeError [Solved]
 
Hello!

Firstly, I just wanted to say thanks for an awesome emulator.

And a quick note about a small issue with the current development version of the frontend on Linux. I encountered the following error, stopping the frontend from running:

Code:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 19: ordinal not in range(128)
On my system, this is caused by a Unicode character being output from the --list-joysticks argument:

Code:

> fs-uae --list-joysticks
Microsoft Microsoft® 2.4GHz Transceiver v6.0

It's a keyboard dongle, rather than a joystick, and it must be the (r) character causing problems. I solved this by adding the following after line 94 in fs_uae_launcher/DeviceManager.py:

Code:

joysticks = joysticks.decode('utf-8', 'ignore')
I'm not a Python programmer, but this seems to solve the problem for me.

Cheers!

Graham

FrodeSolheim 21 November 2012 18:44

Hi, this is the same problem as reported here, http://eab.abime.net/showthread.php?t=66582 and is already fixed in the unreleased 2.1.4. The implemented fix is almost exactly the same as the one you proposed:
Code:

joysticks = joysticks.decode("UTF-8", "replace")
I really appreciate that you took the time to find the problem, fix it and report it :)


All times are GMT +2. The time now is 15:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.07376 seconds with 11 queries