projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update RPM requires
[yaz-moved-to-github.git]
/
src
/
icu_chain.c
diff --git
a/src/icu_chain.c
b/src/icu_chain.c
index
bcb27b4
..
6aac1c0
100644
(file)
--- a/
src/icu_chain.c
+++ b/
src/icu_chain.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-291,7
+291,7
@@
struct icu_chain *icu_chain_xml_config(const xmlNode *xml_node,
if (!rule && strcmp((const char *) node->name, "display"))
{
if (!rule && strcmp((const char *) node->name, "display"))
{
- yaz_log(YLOG_WARN, "Missing attribute rule for element %s",
+ yaz_log(YLOG_WARN, "Missing attribute 'rule' for element %s",
(const char *) node->name);
no_errors++;
continue;
(const char *) node->name);
no_errors++;
continue;
@@
-346,6
+346,9
@@
struct icu_chain *icu_chain_xml_config(const xmlNode *xml_node,
}
if (step && U_FAILURE(*status))
{
}
if (step && U_FAILURE(*status))
{
+ yaz_log(YLOG_WARN, "ICU Error %d %s for element %s, rule %s",
+ *status, u_errorName(*status), node->name, rule ?
+ rule : "");
no_errors++;
break;
}
no_errors++;
break;
}
@@
-581,6
+584,7
@@
void icu_iter_get_org_info(yaz_icu_iter_t iter, size_t *start, size_t *len)
*len = tmp->utf8_len - *start;
else
*len = 0;
*len = tmp->utf8_len - *start;
else
*len = 0;
+ icu_buf_utf8_destroy(tmp);
iter->org->utf16_len = save_len;
}
iter->org->utf16_len = save_len;
}