Add a mechanism for translating to and from the coding system symbols
[sgt/charset] / localenc.c
index 115ea7c..5c761a8 100644 (file)
@@ -145,6 +145,8 @@ int charset_from_localenc(const char *name)
        return i;
     if ( (i = charset_from_xenc(name)) != CS_NONE)
        return i;
+    if ( (i = charset_from_emacsenc(name)) != CS_NONE)
+       return i;
 
     for (i = 0; i < (int)lenof(localencs); i++) {
        const char *p, *q;