+ *right_name = '\0';
+
+ /*
+ * FIXME! It is like rudiment :-))
+ * We have to support this short names of character sets,
+ * because a lot servers in Russia to use own in during
+ * character set and language negotiation still.
+ */
+
+ if (!yaz_matchstr(charsets[i], "win")) {
+ strcpy(right_name, "WINDOWS-1251");
+ } else if (!yaz_matchstr(charsets[i], "koi")) {
+ strcpy(right_name, "KOI8-R");
+ } else if (!yaz_matchstr(charsets[i], "iso")) {
+ strcpy(right_name, "ISO-8859-5");
+ } else if (!yaz_matchstr(charsets[i], "dos")) {
+ strcpy(right_name, "CP866");
+ } else if (!yaz_matchstr(charsets[i], "uni")) {
+ strcpy(right_name, "UTF-8");
+ } else {
+ strcpy(right_name, charsets[i]);
+ }
+
+ logf (LOG_LOG, "charset %d %s (right name is %s)", i,
+ charsets[i], right_name);