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 taschini
Recipients r.david.murray, redcomet, taschini
Date 2012-04-27.07:23:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335511398.16.0.878132040172.issue8767@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the patch. It has four goals:

   1. Allow ./configure --disable-unicode to work;

   2. Have the naked interpreter running with no unicode support;

   3. Be able to compile most of the stdlib;

   4. Be able to run the test suite.

The one-line modification to configure.ac (and consequentley autoreconf'ed configure) achieve goal 1.

The changes to the three C files (which are nothing more than a few #ifdef Py_USING_UNICODE) achieve goal 2: you can run "./python -S".

The fix for site.py takes care of posixpath, glob, (and a few other modules) and makes it possible to compile most of the C extensions of the stdlib, goal 3 -- The compilation process under posix requires posixpath and glob to work.  The most notable extension that won't be built is, unsurprisingly enough, io. Fortunately it does not play in Python 2.7 the central role it plays in Python 3. Still, a few other modules depend on it and won't be usable.

The changes in Lib/test/script_helper.py and Lib/test/test_support.py make it possible to run the test suite. Roughly one third of the tests will fail, though, but I think that's acceptable. In relation to my purpose for submitting this patch ( #1065986 ) , I note that test_pydoc runs and succeeds.
History
Date User Action Args
2012-04-27 07:23:18taschinisetrecipients: + taschini, r.david.murray, redcomet
2012-04-27 07:23:18taschinisetmessageid: <1335511398.16.0.878132040172.issue8767@psf.upfronthosting.co.za>
2012-04-27 07:23:17taschinilinkissue8767 messages
2012-04-27 07:23:17taschinicreate