]> granicus.if.org Git - recode/commitdiff
names.c: remove hard-wired define DEFAULT_CHARSET support
authorReuben Thomas <rrt@sc3d.org>
Tue, 16 Jan 2018 00:35:33 +0000 (00:35 +0000)
committerReuben Thomas <rrt@sc3d.org>
Fri, 19 Jan 2018 00:19:37 +0000 (00:19 +0000)
src/names.c

index cb14b72c6f47ed6669a38d4734d9c6509a83a186..98d500df84b90bfff97cfbe4e0807b9ec7533cac 100644 (file)
@@ -185,13 +185,8 @@ disambiguate_name (RECODE_OUTER outer,
       case ALIAS_FIND_AS_CHARSET:
       case ALIAS_FIND_AS_EITHER:
        name = getenv ("DEFAULT_CHARSET");
-#ifdef DEFAULT_CHARSET
-       if (!name || !*name)
-          name = DEFAULT_CHARSET;
-#else
        if (!name || !*name)
           name = locale_charset();
-#endif
        if (!name || !*name)
           return NULL;
        break;