471,348 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

calling locale.setlocale repeatedly


The way to access the information about the "normal" encoding used on the current computer is through the locale module. Before using locale to retrieve the information you want, you need to call locale.setlocale(locale.LC_ALL, ''). Because of the sensitivity of the underlying C locale module on some platforms, this should only be done once.
Why should the call
locale.setlocale(locale.LC_ALL, '')
only be made once? What exactly is the "sensitivity of the underlying C
locale module"?
Sep 15 '07 #1
0 1031

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jorgen Grahn | last post: by
reply views Thread by Manlio Perillo | last post: by
3 posts views Thread by robert | last post: by
2 posts views Thread by Daniele C. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.