This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author baikie
Recipients baikie, vstinner
Date 2010-08-19.18:48:16
SpamBayes Score 2.72164e-08
Marked as misclassified No
Message-id <1282243703.85.0.169608422004.issue9580@psf.upfronthosting.co.za>
In-reply-to
Content
I wrote this patch to make confstr() return bytes (with code
similar to 2.x), and document the change in "Porting to Python
3.2" and elsewhere, but it then occurred to me that you might
have been talking about making a separate bytes API like
os.environb.  Which did you have in mind?

There is another option for a str API, which is to decode the
value as ASCII with the surrogateescape error handler.  The
returned string will then round-trip correctly through
PyUnicode_FSConverter(), etc., as long as the file system
encoding is compatible with ASCII, which PEP 383 requires it to
be.  This is how undecodable command line arguments are currently
handled when mbrtowc() is unavailable.
History
Date User Action Args
2010-08-19 18:48:23baikiesetrecipients: + baikie, vstinner
2010-08-19 18:48:23baikiesetmessageid: <1282243703.85.0.169608422004.issue9580@psf.upfronthosting.co.za>
2010-08-19 18:48:18baikielinkissue9580 messages
2010-08-19 18:48:18baikiecreate