Petr Pučil
Petr Pučil
The topic of dropping Python 2 came up again in https://github.com/kaitai-io/kaitai_struct_python_runtime/issues/78#issuecomment-2383005874 by @armijnhemel: > Of course, if you are want to keep Python 2 support, then you would need to...
@Anonym271: > I don't see the reason why unnamed fields are marked with an underscore (i.e., hidden or private fields) I get that starting an identifier with an underscore is...
This has now been resolved - both the Web IDE and `ksdump` now display `_unnamed*` fields. It turned out that `ksv` already did this in version [0.7](https://rubygems.org/gems/kaitai-struct-visualizer/versions/0.7), so no change...
According to [this comment](https://gitter.im/kaitai_struct/Lobby?at=5ececa72a91f120a6cc88ff2) on Gitter by @GreyCat, I'm closing this issue because it has been supposedly solved. Please comment if you don't agree.
As evidenced by https://github.com/kaitai-io/kaitai_struct/issues/919 and https://github.com/kaitai-io/kaitai_struct/issues/1223, this still hasn't been completely resolved even in 0.10 (in particular when type switching is involved), so I'm reopening this issue.
To see which characters are affected, see the `Latin-1 Supplement` table at https://en.wikibooks.org/w/index.php?title=Unicode/Character_reference/0000-0FFF&oldid=4442517
Commit https://github.com/kaitai-io/kaitai_struct_compiler/pull/277/commits/fec28262c9d22e9a1337898b3dc26de6e62e7dc6 has a typo in the commit title (it shouldn't be METHOD_PRECE~~NDECE~~, but METHOD_PRECE**DENCE**).
> I can prepare this right now (force-pushing), or do it later when merging — what do you prefer? I don't care - whatever is more convenient for you 🤷♂️...
While testing this, I found a few existing bugs in some language-specific translator method impls, but they're most likely out of scope of this PR (they are certainly not new):...
The discussion in https://github.com/kaitai-io/kaitai_struct_compiler/pull/278#discussion_r1527198115 is related and hints at the root cause of the problem. Apparently, we're trying to detect non-canonical encoding too late in the compiler's "processing pipeline": on...