Skip to content

Encodings: black / grey / white list #393

Closed
kaitai-io/kaitai_struct_compiler
#254

Description

@GreyCat

Following up #391 (comment), the proposal is to:

  • add a "white list" of encodings that are well-known, canonically named and are guaranteed to work in all languages
  • add a "grey list" of encodings which are known to be aliases and non-canonical spellings; for these, ksc would map them into canonical names in all languages, and issue a warning to the user
  • add a "black list" of encodings that should not be allowed; using these should break the build and clear error should be given to the user

For now we'll only do:

  • ascii
  • UTF family of encodings
  • iso-8859-xx family of encodings, where xx is [1..16]
  • windows-12xx family of encodings

A broader goal is #116 and there's a relevant Google Spreadsheets table.

Activity

  1. arekbulski commented on Mar 26, 2018

    @arekbulski
    Member

    What would be the status of UTF16/32? They are still not supported per #187 .

  2. generalmimon commented on Jul 1, 2022

    @generalmimon
    Member

    This is how we can look what unusual encodings are used in the wild to get a better idea - GitHub Search: -org:kaitai-io extension:ksy "encoding" NOT "encoding: ascii" NOT "encoding: utf-8"

  3. GreyCat commented on Jul 12, 2023

    @GreyCat
    MemberAuthor
  4. added this to the v0.11 milestone on Jul 13, 2023
  5. self-assigned this
    on Jul 13, 2023
  6. GreyCat commented on Jul 14, 2023

    @GreyCat
    MemberAuthor

    Considering this implemented, at least it its first form. We've got a few encodings that we consider canonical, this list can be expanded further as and when necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions