[pypy-commit] pypy default: Attempt to fix translation on macosx, which uses a narrow unicode build of CPython.
amauryfa
noreply at buildbot.pypy.org
Sun Mar 4 17:41:16 CET 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r53184:2f06eb672d0e
Date: 2012-03-04 17:39 +0100
http://bitbucket.org/pypy/pypy/changeset/2f06eb672d0e/
Log: Attempt to fix translation on macosx, which uses a narrow unicode
build of CPython.
diff --git a/pypy/module/cpyext/unicodeobject.py b/pypy/module/cpyext/unicodeobject.py
--- a/pypy/module/cpyext/unicodeobject.py
+++ b/pypy/module/cpyext/unicodeobject.py
@@ -178,7 +178,7 @@
@cpython_api([], Py_UNICODE, error=CANNOT_FAIL)
def PyUnicode_GetMax(space):
"""Get the maximum ordinal for a Unicode character."""
- return unichr(runicode.MAXUNICODE)
+ return runicode.UNICHR(runicode.MAXUNICODE)
@cpython_api([PyObject], rffi.CCHARP, error=CANNOT_FAIL)
def PyUnicode_AS_DATA(space, ref):
More information about the pypy-commit
mailing list