Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug #16, not knowing about PyUnicode

  • Loading branch information...
commit 33f9012930714f53055666a40f493f986bc0a2b1 1 parent 373eb56
@jdf authored
View
5 buildtime/py/processing_parser.py
@@ -79,9 +79,10 @@ def __init__(self, to_python_prefix, to_java_format, typecheck_format):
'%s.asLong()',
None),
Class.forName("java.lang.String"):
- ClassConversionInfo('new PyString',
+ ClassConversionInfo('new PyUnicode',
'%s.asString()',
- '%(name)s == PyString.TYPE'),
+ '(%(name)s == PyString.TYPE'
+ '|| %(name)s == PyUnicode.TYPE)'),
PRIMITIVES['char']:
ClassConversionInfo('new PyInteger',
'%s.asInt()',
View
4 runtime/src/jycessing/buildnumber.properties
@@ -1,2 +1,2 @@
-#Sun Oct 24 18:17:14 EDT 2010
-buildnumber=0015
+#Tue Feb 08 21:39:06 EST 2011
+buildnumber=0016
View
2  testing/test_resources/test_unicode.py
@@ -0,0 +1,2 @@
+text(u"ö", 0, 20)
+print(u'OK')
View
5 testing/tests/test/jycessing/JycessingTests.java
@@ -112,6 +112,11 @@ public void loadPixels() throws Exception {
assertEquals("OK\n", run("loadPixels"));
}
+ @Test
+ public void unicode() throws Exception {
+ assertEquals("OK\n", run("unicode"));
+ }
+
public static void main(final String[] args) {
JUnitCore.runClasses(JycessingTests.class);
}
Please sign in to comment.
Something went wrong with that request. Please try again.