aboutsummaryrefslogtreecommitdiffstats
path: root/regcomp.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-08-27 19:18:34 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-08-27 19:18:34 +0300
commitff28c07f95ff2400eb0ad1becc0eae1eab9dc93d (patch)
treec7be1aedb1c0dbd1cd1d78a7d0704a013a064855 /regcomp.c
parenta5847cb0a97b093cd0f23b65c72370af836c9748 (diff)
downloadegawk-ff28c07f95ff2400eb0ad1becc0eae1eab9dc93d.tar.gz
egawk-ff28c07f95ff2400eb0ad1becc0eae1eab9dc93d.tar.bz2
egawk-ff28c07f95ff2400eb0ad1becc0eae1eab9dc93d.zip
Cleanup code for strcasecmp.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/regcomp.c b/regcomp.c
index 9774ae50..d394efa9 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -907,24 +907,13 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
codeset_name = strchr (codeset_name, '.') + 1;
# endif
- /* strcasecmp isn't a standard interface. brute force check */
-#ifndef GAWK
if (strcasecmp (codeset_name, "UTF-8") == 0
|| strcasecmp (codeset_name, "UTF8") == 0)
dfa->is_utf8 = 1;
-#else
- if ( (codeset_name[0] == 'U' || codeset_name[0] == 'u')
- && (codeset_name[1] == 'T' || codeset_name[1] == 't')
- && (codeset_name[2] == 'F' || codeset_name[2] == 'f')
- && (codeset_name[3] == '-'
- ? codeset_name[4] == '8' && codeset_name[5] == '\0'
- : codeset_name[3] == '8' && codeset_name[4] == '\0'))
- dfa->is_utf8 = 1;
#if defined(GAWK) && defined(LIBC_IS_BORKED)
if (gawk_mb_cur_max == 1)
dfa->is_utf8 = 0;
#endif /* defined(GAWK) && defined(LIBC_IS_BORKED) */
-#endif
/* We check exhaustively in the loop below if this charset is a
superset of ASCII. */