mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:53:40 +02:00
...
This commit is contained in:
parent
935af249a4
commit
717eba06b9
2 changed files with 2 additions and 3 deletions
|
|
@ -801,8 +801,7 @@ initicu(void)
|
|||
PyObject* m;
|
||||
UVersionInfo ver, uver;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
char version[U_MAX_VERSION_STRING_LENGTH+1] = {0};
|
||||
char uversion[U_MAX_VERSION_STRING_LENGTH+5] = {0};
|
||||
char version[U_MAX_VERSION_STRING_LENGTH+1] = {0}, uversion[U_MAX_VERSION_STRING_LENGTH+5] = {0};
|
||||
|
||||
u_init(&status);
|
||||
if (U_FAILURE(status)) {
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ def py_safe_chr(i):
|
|||
|
||||
def safe_chr(code):
|
||||
try:
|
||||
return _icu.chr(code)
|
||||
return _icu.chr(code).decode('utf-8')
|
||||
except AttributeError:
|
||||
return py_safe_chr(code)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue