This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: Python 3.0
On Sat, Feb 14, 2009 at 4:46 AM, Thiago Jung Bauermann
<bauerman@br.ibm.com> wrote:
> IMO we should be careful here. If GDB knows its working with a string in
> the inferior (as opposed to a byte array), then it should use PyUnicode,
> converting from target_encoding to convert to Unicode. If GDB is working
> with a string which originates from the host (e.g., a string the user
> typed in the CLI), then it should use PyUnicode but converting from
> host_encoding. Using target_encoding and host_encoding doesn't help much
> with today's GDB, but Tromey has a patch which greatly improves charset
> handling, and the Python side will benefit from it automatically IIUC.
Awesome. I'll give that a shot.
Naturally, I'll make sure things continue to work with older versions of Python.