Author: Amaury Forgeot d'Arc <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit