English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 21 November 2012, 14:16   #1
degville
 
Posts: n/a
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

Last edited by degville; 21 November 2012 at 14:49.
 
Old 21 November 2012, 17:44   #2
FrodeSolheim
FS-UAE Developer
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 40
Posts: 3,886
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
FrodeSolheim is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launcher not loading due to UnicodeDecodeError [Solved] buckrogers support.FS-UAE 7 16 March 2014 14:04
New Snes Launcher synchro Retrogaming General Discussion 110 28 January 2013 10:30
DOS Launcher !! synchro Retrogaming General Discussion 11 26 November 2012 20:26
Is it possible to tweak Launcher settings? [Solved] dreamkatcha support.FS-UAE 5 04 November 2012 17:58
Python errors from fs-uae-launcher [Solved] mocham support.FS-UAE 8 01 November 2012 19:54

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.07274 seconds with 13 queries