-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add StrLiteralsLatin1 for Latin-1 characters in string literals
Demonstrates kaitai-io/kaitai_struct#1133
- Loading branch information
1 parent
958da6d
commit 993e005
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
meta: | ||
id: str_literals_latin1 | ||
seq: | ||
- id: len_parsed | ||
type: u2le | ||
- id: parsed | ||
size: len_parsed | ||
type: str | ||
encoding: UTF-8 | ||
instances: | ||
parsed_eq_literal: | ||
value: parsed == "\u00a3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
id: str_literals_latin1 | ||
data: str_literals_latin1.bin | ||
asserts: | ||
- actual: parsed_eq_literal | ||
expected: true |
Binary file not shown.