(original) (raw)
On Tue, May 14, 2019, 19:52 Steve Dower <steve.dower@python.org> wrote:
It looks like Py\_DecodeLocale() is available very early on - why
wouldn't we recommend using this function? It seems to be nearly a
drop-in replacement for mbtowcs in the samples, and if memory allocation
is a big deal perhaps we could just add a version that writes to a buffer?
Actually, it is recommended in the docs https://docs.python.org/3/c-api/init.html#c.Py\_SetPythonHome
Sebastian