Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange unicode issues on gentoo, twisted and django SVN #36

Closed
Griatch opened this issue Jan 21, 2014 · 4 comments
Closed

Strange unicode issues on gentoo, twisted and django SVN #36

Griatch opened this issue Jan 21, 2014 · 4 comments
Labels
bug An actual error or unwanted behavior.

Comments

@Griatch
Copy link
Member

Griatch commented Jan 21, 2014

From tsalar...@gmail.com on September 14, 2007 15:28:25

Traceback (most recent call last):
File "/home/mking/devel/python/personal/evennia/cmdhandler.py", line 150,
in handle
cmd(cdat)
File "/home/mking/devel/python/personal/evennia/commands/general.py",
line 466, in cmd_help
session.msg("\r\n%s%s%s" % (ansi.ansi["hilite"], topic.get_topicname(),
ansi.ansi["normal"]))
File "/home/mking/devel/python/personal/evennia/session.py", line 170, in msg
self.sendLine("%s" % (message,))
File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line
277, in sendLine
return self.transport.write(line + self.delimiter)
File "/usr/lib/python2.5/site-packages/twisted/internet/abstract.py",
line 165, in write
raise TypeError("Data must not be unicode")
TypeError: Data must not be unicode

Original issue: http://code.google.com/p/evennia/issues/detail?id=36

@Griatch
Copy link
Member Author

Griatch commented Jan 21, 2014

From tsalar...@gmail.com on September 14, 2007 06:30:42

This seems to be django incited: http://groups.google.com/group/django-updates/browse_thread/thread/88ab96d3f733c819/09c577a4f5b13dc9

@Griatch
Copy link
Member Author

Griatch commented Jan 21, 2014

From tsalar...@gmail.com on September 14, 2007 06:44:40

Further information:

Django committed their "everything is unicode" to trunk a while back, so I'm going to
update session.py to check if it's unicode, if it is, do msg.encode("utf-8").

That SHOULD do what we need.

@Griatch
Copy link
Member Author

Griatch commented Jan 21, 2014

From tsalar...@gmail.com on September 14, 2007 06:59:25

Fixed as of r276 .

@Griatch
Copy link
Member Author

Griatch commented Jan 21, 2014

From tsalar...@gmail.com on September 14, 2007 06:59:44

forgot to close!

Status: Fixed

@Griatch Griatch closed this as completed Jan 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An actual error or unwanted behavior.
Projects
None yet
Development

No branches or pull requests

1 participant