Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

myesc() function fixes #195

Closed
wants to merge 2 commits into from
Closed

myesc() function fixes #195

wants to merge 2 commits into from

Conversation

Explorer09
Copy link
Contributor

No description provided.

No sense to keep these two function when libc's strtoul() can do the
same job, but better.
* Don't call isascii() here. It's deprecated in POSIX and not needed
  for myesc's case.
* The check of the character class and range here should match what's
  defined as {ESCSEQ} in scan.l, so for [[:xdigit:]] we use isxdigit();
  for [0-7] we check '0' <= c <= '7' (not isdigit(c) because isdigit is
  locale-dependant in standard's sense)
* Add missing length limit for "\x<hex>" (<hex> is at most 2 digits)
@westes
Copy link
Owner

westes commented May 2, 2017

Thanks. THis is on master and will be included in the next release.

@westes westes closed this May 2, 2017
@Explorer09 Explorer09 deleted the myesc branch June 6, 2017 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants