X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fyaz-icu.c;h=81ca933e9fca74f67c1e0f8d5c6e5ed8bf09a3c7;hp=27180b9280a216a9a3543fa072616e93c7fe1371;hb=27ce41db1ab7b1a386d1a37dda90d4e143a2fc2c;hpb=c1ee92c068d11468080418f5a5a5c44028deafa7 diff --git a/util/yaz-icu.c b/util/yaz-icu.c index 27180b9..81ca933 100644 --- a/util/yaz-icu.c +++ b/util/yaz-icu.c @@ -123,25 +123,6 @@ void read_params(int argc, char **argv, struct config_t *p_config) print_option_error(p_config); } - -/* UConverter *conv; */ -/* conv = ucnv_open("utf-8", &status); */ -/* assert(U_SUCCESS(status)); */ - -/* *ustr16_len */ -/* = ucnv_toUChars(conv, ustr16, 1024, */ -/* (const char *) *xstr8, strlen((const char *) *xstr8), */ -/* &status); */ - - - -/* ucnv_fromUChars(conv, */ -/* (char *) *xstr8, strlen((const char *) *xstr8), */ -/* ustr16, *ustr16_len, */ -/* &status); */ -/* ucnv_close(conv); */ - - static void print_icu_converters(const struct config_t *p_config) { int32_t count; @@ -371,11 +352,6 @@ static void print_icu_xml_locales(const struct config_t *p_config) if (p_config->xmloutput) { fprintf(p_config->outfile, "outfile, " locale=\"%s\"", uloc_getAvailable(i)); */ - /* if (strlen(keyword_str)) */ - /* fprintf(p_config->outfile, " keyword=\"%s\"", keyword_str); */ - /* if (ucol_getAvailable(i)) */ - /* fprintf(p_config->outfile, " collation=\"1\""); */ if (strlen(lang_str)) fprintf(p_config->outfile, " language=\"%s\"", lang_str); if (strlen(script_str)) @@ -561,9 +537,9 @@ static void process_text_file(struct config_t *p_config) int main(int argc, char **argv) { +#if YAZ_HAVE_ICU struct config_t config; -#if YAZ_HAVE_ICU read_params(argc, argv, &config); if (config.conffile && strlen(config.conffile))