-
Notifications
You must be signed in to change notification settings - Fork 350
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
"Unrecognized escape sequence" after update to v2.4.0/v2.4.1 #1004
Comments
The escape sequence handling was changed from non-existent to matching the rules used in toml file processing. Entirely possible there are some bugs in that as of yet. you can probably try |
Also maybe should add an app level option to disable escape sequence parsing |
the escape processing only happens by default on config files and the single string parse and split in strings surrounded by double quotes. |
Thanks, changing \"text\" to 'text' worked. |
After v2.4.0 update I receive
Exception: "unrecognized escape sequence \a in C:\testdir\aaa.txt"
on the following example code:It is probably related to #970. When I compile with CLI11 version from this commit, everything works fine (displays
OK! Parsed file path: "C:\testdir\aaa.txt"
).I've tried to use new transformer
->transform(CLI::EscapedString)
, but no difference.Win11 23H2, VS2022 17.8.6, C++20, file is in UTF-8.
P.S. Parsing a vector of args works fine on v2.4.1:
but a fix to std::string overload would be nice.
The text was updated successfully, but these errors were encountered: