X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fyaz-icu.c;h=ff249e03cc4d3e565c9b180a8b770ca6121ca8b3;hb=71509ab1affd957fa0af7c7536105988a7ccd93d;hp=a876186a1414b622ceed17d3d591243903a4ac63;hpb=e005fd551460aab9ccefb561e42c746cc58fd302;p=yaz-moved-to-github.git
diff --git a/util/yaz-icu.c b/util/yaz-icu.c
index a876186..ff249e0 100644
--- a/util/yaz-icu.c
+++ b/util/yaz-icu.c
@@ -2,7 +2,7 @@
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: yaz-icu.c,v 1.3 2007-10-24 14:48:18 marc Exp $
+ * $Id: yaz-icu.c,v 1.7 2007-11-06 10:27:30 adam Exp $
*/
#if HAVE_CONFIG_H
@@ -57,8 +57,6 @@ void print_option_error(const struct config_t *p_config)
" \n"
" \n"
" \n"
- " \n"
- " \n"
"\n"
);
exit(1);
@@ -445,7 +443,8 @@ static void process_text_file(const struct config_t *p_config)
if (!xml_locale || !strlen((const char *) xml_locale))
return;
- config.chain = icu_chain_xml_config(xml_node, (uint8_t *) "en", &status);
+ config.chain = icu_chain_xml_config(xml_node, (const char *) xml_locale, 0,
+ &status);
xmlFree(xml_locale);
@@ -483,14 +482,14 @@ static void process_text_file(const struct config_t *p_config)
" norm=\"%s\" display=\"%s\"/>\n",
token_count,
line_count,
- icu_chain_get_norm(config.chain),
- icu_chain_get_display(config.chain));
+ icu_chain_token_norm(config.chain),
+ icu_chain_token_display(config.chain));
else
fprintf(config.outfile, "%lu %lu '%s' '%s'\n",
token_count,
line_count,
- icu_chain_get_norm(config.chain),
- icu_chain_get_display(config.chain));
+ icu_chain_token_norm(config.chain),
+ icu_chain_token_display(config.chain));
}
}