YAZ_{BEGIN,END}_CDECL yaz_init_globals
[yaz-moved-to-github.git] / src / cclstr.c
index 884623c..a4e2bb0 100644 (file)
@@ -1,12 +1,15 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
-/** 
+/**
  * \file cclstr.c
  * \brief Implements CCL string compare utilities
  */
-#include <ctype.h>
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <yaz/yaz-iconv.h>
 #include <stdio.h>
 #include <stdlib.h>
 
 
 static int ccli_toupper (int c)
 {
-    return toupper (c);
+    if (yaz_islower(c))
+        return yaz_toupper(c);
+    else
+        return c;
 }
 
 int (*ccl_toupper)(int c) = NULL;