shinymud/ShinyMUD — Issue #1: Vista telnet crashes the mud
Author: surrey
Created: 2011-11-29 02:26:57+00:00
State: open

Logging on with Vista's built-in telnet gives the following error:

************2010-05-20 15:04:06.036863************
Traceback (most recent call last):
File "/home/shiny/shinymud/src/shinymud/lib/shiny_server.py", line 40, in
world.start_turning()
File "/home/shiny/shinymud/src/shinymud/lib/world.py", line 67, in start_turning
self.player_list[key].do_tick()
File "/home/shiny/shinymud/src/shinymud/models/player.py", line 217, in do_tick
self.mode.state()
File "/home/shiny/shinymud/src/shinymud/modes/init_mode.py", line 66, in get_input
self.next_state(arg)
File "/home/shiny/shinymud/src/shinymud/modes/init_mode.py", line 100, in verify_playername
row = self.world.db.select('password,dbid FROM player WHERE name=?', [self.playername])
File "/home/shiny/shinymud/src/shinymud/lib/db.py", line 58, in select
cursor.execute("select " + query, params)
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.
**************************************************

We may be negotiating line-mode incorrectly for windows. It seems to work fine in puTTY, though.