A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-June/004515.html below:

[Python-Dev] Idea: emulating _locale (was Re: [Python-checkins] CVS: python/dist/src/Lib locale.py,1.4,1.5)

[Python-Dev] Idea: emulating _locale (was Re: [Python-checkins] CVS: python/dist/src/Lib locale.py,1.4,1.5)Peter Funk pf@artcom-gmbh.de
Wed, 7 Jun 2000 11:34:12 +0200 (MEST)
Hi,

Marc-Andre Lemburg:
[...]
> Added a new locale name aliasing engine which also supports
> locale encodings, a feature which is used by the new default
> encoding support in site.py.
> 
> Index: locale.py
[...]
> + ### C lib locale APIs
> + 
> + from _locale import *

Wouldn't it be clever to provide some dummy stubs on those platforms, where 
the _locale module was not enabled?  

try:
    from _locale import *
except:
    def setlocale(....
    def localeconv(....
    ...

Especially the MacOS 1.5.2 release provided by Jack Jansen was
compiled without '_locale'.  And at least in Python 1.6a2 '_locale'
is still disabled per default in 'Modules/Setup.in'.  I didn't had
a look into the current CVS though, so this may have changed.

I think the name aliasing tables might be also useful on those
systems lacking locale support in their C-library.

Regards, Peter



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4