-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tr: correctly handle multibyte octal sequences #6779
tr: correctly handle multibyte octal sequences #6779
Conversation
Partly resolves the last issue listed in #6777. I'm not sure how to perform logging inside the nom parsing code without the messages being printed twice. |
GNU testsuite comparison:
|
First and last issues in #6777 are now addressed by this |
GNU testsuite comparison:
|
96bff67
to
c9c679b
Compare
GNU testsuite comparison:
|
c9c679b
to
e63bf66
Compare
GNU testsuite comparison:
|
e63bf66
to
e7dbb8b
Compare
Hi, I've played a bit with octal parsing as well, and I come to the same conclusion as you, which is that the logging of a warning is impossible to do because it is executed several times. The solutions I see are the following:
What do you think ? |
@RenjiSann The least-bad idea I could think of was changing the return type of all of these functions to allow returning a warning to print, but that would be kind of ugly considering that it's only this one path that would actually return one. I should probably remove my commented-out code, so we can at least get the main fix merged in (albeit without the warning). |
I am not convinced this would efficiently solve the problem, it might be over-complicated to check for different warning messages that should both be displayed
Let's do this, and maybe open an issue for handling the warning correctly later |
a7b32d3
to
186d749
Compare
GNU testsuite comparison:
|
No description provided.