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

Fix incorrect encoding literals -- escape them #302

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Apr 15, 2024

Due to C++ it was not possible to call doStringLiteral in BaseTranslator, because in C++ this method returns std::string object instead of a "..." literal.

Fixes the following KST tests:

  • str_encodings_escaping_enc
  • str_encodings_escaping_to_s

C++: add a method to translator to get the raw string literal instead of std::string object

Fixes the following KST tests:
- str_encodings_escaping_enc
- str_encodings_escaping_to_s
@Mingun Mingun force-pushed the fix-encoding-literals branch from bd416c6 to 7eb8775 Compare July 9, 2024 13:56
Rust support is largely reworked in
kaitai-io#250 and
touching it here would just create conflicts.
Copy link
Member

@generalmimon generalmimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mingun Thanks!

@generalmimon generalmimon merged commit 5d7822f into kaitai-io:master Jul 10, 2024
1 of 4 checks passed
@Mingun Mingun deleted the fix-encoding-literals branch July 11, 2024 04:58
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