Export to GitHub

fofix - issue #964

The game lets you create players with invalid names.


Posted on Sep 2, 2009 by Happy Horse

Create a player with an accented character in his name. After pressing "Done", you can not select it in the lobby: you're taken back to the main menu each time you try. Exit the game, then try to launch it again; you get a crash:

Traceback (most recent call last): File "FoFiX.py", line 279, in <module> File "FoFiX.py", line 137, in main File "GameEngine.pyo", line 597, in init File "Data.pyo", line 78, in init File "Player.pyo", line 307, in loadPlayers sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

The only workaround (until FoFiX supports Unicode)is to delete/rename the problematic player's .ini in "/players".

Or forbid the use of accented characters (the game already prevents "*", ":", "/", etc. from being used).

Comment #1

Posted on Sep 2, 2009 by Grumpy Dog

This should probably be fixed before the final. Tom can probably knock out a fix pretty quick

Comment #2

Posted on Sep 2, 2009 by Grumpy Dog

(No comment was entered for this change.)

Comment #3

Posted on Sep 2, 2009 by Quick Horse

r1849

Status: Fixed

Labels:
Priority-Medium Type-Defect Milestone-Release-3.120 Usability