]> mj.ucw.cz Git - libucw.git/blobdiff - charset/setnames.c
Setting of LIBS is no longer necessary.
[libucw.git] / charset / setnames.c
index 9c888828ff6711322e84ec12310606134c2391ae..94c7d17e019490b27648deb0db2542e1d93d505e 100644 (file)
@@ -12,7 +12,9 @@
 
 #include <string.h>
 
-static char *cs_names[] = {
+/* Names according to RFC 1345 (see http://www.iana.org/assignments/character-sets) */
+
+static const char *cs_names[] = {
        "US-ASCII",
        "ISO-8859-1",
        "ISO-8859-2",
@@ -41,7 +43,7 @@ static char *cs_names[] = {
 };
 
 int
-find_charset_by_name(char *c)
+find_charset_by_name(const char *c)
 {
        unsigned int i;
 
@@ -57,5 +59,5 @@ charset_name(int i)
   if (i < 0 || i > CONV_NUM_CHARSETS)
     return "x-unknown";
   else
-    return cs_names[i];
+    return (char *)cs_names[i];
 }