From: Adam Dickmeiss Date: Mon, 8 Nov 2010 12:34:12 +0000 (+0100) Subject: More consistent ICU info. Update URLs to ICU info X-Git-Tag: v4.1.4~14^2~22 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=8e6bdfe54743294add27acc265adae0f6999a9ca;p=yaz-moved-to-github.git More consistent ICU info. Update URLs to ICU info --- diff --git a/util/yaz-icu.c b/util/yaz-icu.c index a8c43ce..63a38db 100644 --- a/util/yaz-icu.c +++ b/util/yaz-icu.c @@ -150,7 +150,7 @@ static void print_icu_converters(const struct config_t *p_config) fprintf(config.outfile, "\n", ucnv_getAvailableName(i)); else - fprintf(config.outfile, "%s ", ucnv_getAvailableName(i)); + fprintf(config.outfile, "%s\n", ucnv_getAvailableName(i)); } if (p_config->xmloutput) @@ -177,7 +177,7 @@ static void print_icu_transliterators(const struct config_t *p_config) if (p_config->xmloutput) fprintf(config.outfile, "\n", name); else - fprintf(config.outfile, " %s", name); + fprintf(config.outfile, "%s\n", name); } uenum_close(en); if (p_config->xmloutput) @@ -223,10 +223,8 @@ static void print_icu_transliterators(const struct config_t *p_config) " [A-Za-z]; Lower(); Latin-Katakana; Katakana-Hiragana (transforms latin and katagana to hiragana)\n" " [[:separator:][:start punctuation:][:initial punctuation:]] Remove \n" "\n" - "see http://icu.sourceforge.net/userguide/Transform.html\n" - " http://www.unicode.org/Public/UNIDATA/UCD.html\n" - " http://icu.sourceforge.net/userguide/Transform.html\n" - " http://icu.sourceforge.net/userguide/TransformRule.html\n" + "see http://userguide.icu-project.org/transforms/general\n" + " http://www.unicode.org/reports/tr44/\n" ); @@ -283,6 +281,11 @@ static void print_icu_xml_locales(const struct config_t *p_config) fprintf(config.outfile, "\n", count, uloc_getDefault(), ucol_countAvailable()); } + else + { + fprintf(config.outfile, "Available ICU locales: %d\n", count); + fprintf(config.outfile, "Default locale is: %s\n", uloc_getDefault()); + } for(i=0;ixmloutput) fprintf(config.outfile, "\n");