Skip to content

Missing FIELDWIDTHS splitting mode #123

Closed

Description

@Alonely0

gawk supports splitting fixed-width fields with this variable. All the variable trapping for tracing modes, etc. has already been plumbed through. The only missing thing should be the implementation itself, but the docs confuse me a bit, and I'd be more comfortable with another pair of eyes taking a look.

Sorry for the delay, I had a deployment at work these last couple of weeks and couldn't get the time to put this together.

https://www.gnu.org/software/gawk/manual/html_node/Fixed-width-data.html
https://www.gnu.org/software/gawk/manual/html_node/Skipping-intervening.html
https://www.gnu.org/software/gawk/manual/html_node/Allowing-trailing-data.html
https://www.gnu.org/software/gawk/manual/html_node/Fields-with-fixed-data.html

Relevant files/lines:

SplitMode::Fieldwidths => {
let _fieldwidths = symbols.fieldwidths.to_bytes();
todo!()
}

Activity

  1. added theissue type on Sep 25, 2026
  2. added a commit that references this issue on Oct 10, 2026
    e160a3f
  3. added a commit that references this issue on Oct 19, 2026
    c614c0e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions