Bug fix: did not use outputCharset in the conversion of search term
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 8 May 2005 22:53:59 +0000 (22:53 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 8 May 2005 22:53:59 +0000 (22:53 +0000)
client/client.c

index f7190a2..ade869e 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: client.c,v 1.278 2005-05-06 12:18:26 adam Exp $
+ * $Id: client.c,v 1.279 2005-05-08 22:53:59 adam Exp $
  */
 
 #include <stdio.h>
@@ -1287,7 +1287,7 @@ static char *encode_SRW_term(ODR o, const char *q)
     yaz_iconv_t cd;
     char *res;
     if (outputCharset)
-       in_charset = in_charset;
+       in_charset = outputCharset;
     cd = yaz_iconv_open("UTF-8", in_charset);
     if (!cd)
     {