[Jython-checkins] jython: Support Unicode in zxJDBC exceptions.
jeff.allen
jython-checkins at python.org
Sat Mar 16 12:15:42 EDT 2019
https://hg.python.org/jython/rev/d802aba05df2
changeset: 8224:d802aba05df2
user: 愧僧 <kuiseng.zhb at alibaba-inc.com>
date: Sat Mar 16 13:31:02 2019 +0000
summary:
Support Unicode in zxJDBC exceptions.
files:
ACKNOWLEDGMENTS | 1 +
NEWS | 1 +
src/com/ziclix/python/sql/zxJDBC.java | 2 +-
3 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ACKNOWLEDGMENTS b/ACKNOWLEDGMENTS
--- a/ACKNOWLEDGMENTS
+++ b/ACKNOWLEDGMENTS
@@ -182,6 +182,7 @@
Tom Bech
Richie Bendall
Raymond Ferguson
+ yishenggudou (愧僧)
Local Variables:
mode: indented-text
diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
Development tip
Bugs fixed
+ - [ GH-131 ] Support Unicode in zxJDBC exceptions.
- [ 2654 ] Imported modules allow access to submodules
- [ 2362 ] Import * doesn't work on JDK9 for java.*, jdk.* namespaces
- [ 2630 ] Cannot import java.awt.* on Java 9
diff --git a/src/com/ziclix/python/sql/zxJDBC.java b/src/com/ziclix/python/sql/zxJDBC.java
--- a/src/com/ziclix/python/sql/zxJDBC.java
+++ b/src/com/ziclix/python/sql/zxJDBC.java
@@ -327,7 +327,7 @@
* @return PyException
*/
public static PyException makeException(PyObject type, String msg) {
- return Py.makeException(type, msg == null ? Py.EmptyString : Py.newString(msg));
+ return Py.makeException(type, msg == null ? Py.EmptyString : Py.newStringOrUnicode(msg));
}
/**
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list