regcomp.c: Debug output clearer ranges
authorKarl Williamson <public@khwilliamson.com>
Sun, 28 Jul 2013 00:45:18 +0000 (18:45 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 30 Jul 2013 18:05:47 +0000 (12:05 -0600)
commitf202c207b253f1f19a37243471f35742d6bb309c
tree6427b46606be4436f4dc5c914d7ffe255ee176b2
parent9a1ec8a9cfbf5741c8f41cdf8d1f5fe0c3600696
regcomp.c: Debug output clearer ranges

It's not immediately obvious what the character class [!-~] matches.
Better is its equivalent: [\x21-\x7e].  This commit changes the debug
output to be the latter for character class matches, while retaining the
current behavior where it is clear what the range matches, in, e.g.,
[J-R].  Ranges like [A-z] include more than just alphabetics, so they
are now output as [\x41-\x7a].  (Debug output is done, for example, when
the command line option -Dr is specified.)
regcomp.c