STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Can you give me examples of configuration keys with undecodable values?

PyUnicode_DecodeFSDefault(AndSize) encoding depends on the locale whereas 
PyUnicode_FromString uses utf-8. I don't know the encoding of confstr() values.

You can decode an utf-8 value using surrogateescape (PEP 383 error handler) 
with PyUnicode_DecodeUTF8(value, strlen(value), "surrogateescape").

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to