Ticket #2 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Unicode support

Reported by: steve Assigned to: somebody
Priority: normal Milestone:
Component: airspeed Version:
Severity: normal Keywords:
Cc:

Description (Last modified by steve)

Received from Andreas Klöckner:

I conceived a (really simplistic) patch to let Airspeed deal with Python's unicode strings appropriately, making it (at least a little bit) Unicode-aware.

Those are the changes:

- Don't use cStringIO--it can't handle unicode.

- In the one place where stringification is used, check whether the value is already an instance of basestring, and if so, leave it unchanged. (str() forces unicode into ascii, which fails). I guess that this will only work on 2.3 and up.

Attachments

airspeed-unicode.patch (0.7 kB) - added by steve on 05/02/05 11:29:01.

Change History

05/02/05 11:29:01 changed by steve

  • attachment airspeed-unicode.patch added.

05/02/05 11:30:05 changed by steve

  • description changed.

05/03/05 18:21:08 changed by steve

  • status changed from new to closed.
  • resolution set to fixed.