/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
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;
if (p_config->xmloutput)
{
fprintf(p_config->outfile, "<locale id=\"%s\"", uloc_getAvailable(i));
- /* fprintf(p_config->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))
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))