-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
printf: fix octal escape parsing #7431
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
Conversation
i don't mind it
|
b966481
to
5326d19
Compare
Well it looks like my suggestions are incompatible with other dependencies of |
GNU testsuite comparison:
|
5326d19
to
9c6d1fc
Compare
pub fn parse_escape_code(rest: &mut &[u8]) -> Result<EscapedChar, EscapeError> { | ||
pub fn parse_escape_code( | ||
rest: &mut &[u8], | ||
zero_octal_parsing: Option<OctalParsing>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the Option
here. None
currently indicates that the default variant of OctalParsing
should be used (and not that there is no OctalParsing
). Maybe it makes sense to explicitly mark one of the OctalParsing
variants as default and use OctalParsing::default()
where None
is currently used?
9c6d1fc
to
2cbad60
Compare
Co-authored-by: aryal <141743392+aryalaadi@users.noreply.github.com>
2cbad60
to
bbca2ff
Compare
GNU testsuite comparison:
|
Thanks :) |
Refit of #7210 by @aryalaadi
I had some trouble rebasing so I just copied the changes manually to a new branch, so your name disappears from the commits. Sorry for that, I'll try to find a way to make you a co-author of these changes
Fixes #7202