X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ficu_transform.c;h=478efa1275a2a4613ff538573079edc6a2c23aaf;hb=7b1bbfddfb6e9d68c645388e3279a4990a6592ef;hp=0d75ff7b7ec9b3b123d3d1aa0b33c34392d66881;hpb=b71d00d4e1c65d134664f37502d62fcfa8136d76;p=yaz-moved-to-github.git diff --git a/src/icu_transform.c b/src/icu_transform.c index 0d75ff7..478efa1 100644 --- a/src/icu_transform.c +++ b/src/icu_transform.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ @@ -60,7 +60,10 @@ struct icu_transform * icu_transform_create(const char *id, char action, transform->trans = 0; if (id) + { icu_utf16_from_utf8_cstr(id16, id, status); + id16->utf16[id16->utf16_len] = 0; + } if (rules) icu_utf16_from_utf8_cstr(rules16, rules, status);