Message11686
Playing with Jython 2.7.2a1+
I don't know if this is a Jython issue or Java issue.
Basically, my script creats a GregorianCalendar object, and attempts to show the names of each month in whatever language. It wroks as expected. But when I pass a graphical language (like Korean) or extended characters (like Vietnamese) it fails with the following error:
===================================
./jython showname2.py
ko 12 <<<<<<< starts off fine...
Traceback (most recent call last):
File "showname2.py", line 13, in <module>
print loc, x, gc.getDisplayNames(2,2,loc)
java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
====================
If I change the method to getDisplayName(2,2,loc), It works correctly, showing the graphics for the current month
I figure the code that works for getDisplayName should also be in getDisplayNames. I can probably review it and correct it, but I'm familiar with commiitting and pushing my own code. But I get nervous mucking with someone else's. |
|
Date |
User |
Action |
Args |
2017-12-04 07:20:45 | psykiatris | set | recipients:
+ psykiatris |
2017-12-04 07:20:45 | psykiatris | set | messageid: <1512372045.53.0.213398074469.issue2649@psf.upfronthosting.co.za> |
2017-12-04 07:20:45 | psykiatris | link | issue2649 messages |
2017-12-04 07:20:44 | psykiatris | create | |
|