Author loewis
Recipients Dmitry.Jemerov, loewis, r.david.murray, ronaldoussoren, vstinner
Date 2013-07-10.16:15:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373472934.85.0.65140537284.issue18378@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, I couldn't find any use of getdefaultlocale in any of the hg revisions (using hg grep) in

https://bitbucket.org/birkenfeld/sphinx/

Instead, it's (probably) docutils, which has this code:

    locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
    # locale.getpreferredencoding([do_setlocale=True|False])
    # has side-effects | might return a wrong guess.
    # (cf. Update 1 in http://stackoverflow.com/questions/4082645/using-python-2-xs-locale-module-to-format-numbers-and-currency)

I find that quite unfortunate, since locale.getpreferredencoding() would have don the right thing (IMO).
History
Date User Action Args
2013-07-10 16:15:34loewissetrecipients: + loewis, ronaldoussoren, vstinner, r.david.murray, Dmitry.Jemerov
2013-07-10 16:15:34loewissetmessageid: <1373472934.85.0.65140537284.issue18378@psf.upfronthosting.co.za>
2013-07-10 16:15:34loewislinkissue18378 messages
2013-07-10 16:15:34loewiscreate