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 ronaldoussoren
Recipients Dmitry.Jemerov, barry-scott, loewis, ned.deily, r.david.murray, ronaldoussoren, vstinner
Date 2015-03-31.13:28:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427808510.03.0.0410782140771.issue18378@psf.upfronthosting.co.za>
In-reply-to
Content
1) I agree with Ned that the OSX behavior is not broken, it is different but within spec. Python makes assumption about the format of locale names that aren't universally valid.

2) We should be careful in using CFLocale. Those APIs are part of CoreFoundation and CoreFoundation APIs cannot be used in the child proces after calling os.fork. 

As an aside to 2), CoreFoundation and any other Apple "Cocoa" frameworks should be assumed to use threads and hence the comment about threads in the fork specification (link below) apply, and currently Apple doesn't appear to use pthread_atfork to make sure library state is valid in child processes after fork.

<http://pubs.opengroup.org/onlinepubs/009695399/functions/fork.html>
History
Date User Action Args
2015-03-31 13:28:30ronaldoussorensetrecipients: + ronaldoussoren, loewis, barry-scott, vstinner, ned.deily, r.david.murray, Dmitry.Jemerov
2015-03-31 13:28:30ronaldoussorensetmessageid: <1427808510.03.0.0410782140771.issue18378@psf.upfronthosting.co.za>
2015-03-31 13:28:30ronaldoussorenlinkissue18378 messages
2015-03-31 13:28:29ronaldoussorencreate