mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
935af249a4
commit
717eba06b9
@ -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 @@ else:
|
||||
|
||||
def safe_chr(code):
|
||||
try:
|
||||
return _icu.chr(code)
|
||||
return _icu.chr(code).decode('utf-8')
|
||||
except AttributeError:
|
||||
return py_safe_chr(code)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user