From: Joel Brobecker <brobecker@adacore.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Add function host_string_to_python_string.
Date: Fri, 18 Dec 2015 18:24:00 -0000 [thread overview]
Message-ID: <20151218182436.GG29928@adacore.com> (raw)
In-Reply-To: <001a11438f7c8987ea05272ff754@google.com>
> There's a python_string_to_host_string function, but not its counterpart.
> I couldn't find anything in the record arguing against its existence,
> and there's enough of a use for it so I added it.
>
> Regression tested on amd64-linux.
>
> 2015-12-18 Doug Evans <dje@google.com>
>
> * python/py-utils.c (host_string_to_python_string): New function.
> * python/python-internal.h (host_string_to_python_string): Declare it.
> * python/py-*.c (*): Update all calls to
> PyString_Decode (str, strlen (str), host_charset (), NULL)
> to use host_string_to_python_string (str) instead.
FWIW, looking at the alternative, I find the new one much better,
so that's a nice addition, IMO.
--
Joel
next prev parent reply other threads:[~2015-12-18 18:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-18 18:04 Doug Evans
2015-12-18 18:24 ` Joel Brobecker [this message]
2015-12-18 18:48 ` Pedro Alves
2016-03-30 6:51 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151218182436.GG29928@adacore.com \
--to=brobecker@adacore.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox