]> git.saurik.com Git - bison.git/blobdiff - src/symtab.c
Pacify -DGNULIB_POSIXCHECK.
[bison.git] / src / symtab.c
index 307af895e1b3bf762485cb5bd4bd66bf2cad2cc7..f9f78b313667e8eac55a85a5b169c753ca71090b 100644 (file)
@@ -68,7 +68,7 @@ symbol_new (uniqstr tag, location loc)
 
   /* If the tag is not a string (starts with a double quote), check
      that it is valid for Yacc. */
-  if (tag[0] != '\"' && tag[0] != '\'' && strchr (tag, '-'))
+  if (tag[0] != '\"' && tag[0] != '\'' && mbschr (tag, '-'))
     yacc_at (loc, _("POSIX Yacc forbids dashes in symbol names: %s"),
              tag);