Jay Freeman (saurik) <sau...@saurik.com> added the comment:

I have attached a tested patch against Python-2.7.2.tgz (as I do not know how 
to use hg currently). It should be noted that I also am not 100% certain how 
the Python build environment works, but the way I added the wcsxfrm test was to 
add it to configure.in, then run autoheader and autoconf.

It also should be noted that the original code called strxfrm and did not check 
for an error result: neither does my new code (which is mostly based on 
formulaic modifications of the existing code in addition to educated guesses 
with regards to coding and formatting standards: feel free to change, 
obviously).

Finally, I noticed while working on this that --enable-unicode=no does not work 
(there is a check that enforces that it must be either ucs2 or ucs4): seems 
like an easy fix. That said, I ran into numerous other issues trying to make a 
non-Unicode build, and in the end gave up. My code looks like it should work, 
however, were someone to figure out how to build a non-Unicode Python 2.7.

----------
keywords: +patch
Added file: http://bugs.python.org/file24125/wcsxfrm.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue2481>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to