Skip to content

"string contains zeros" when formatting buffer #1600

Closed
@edsrzf

Description

@edsrzf

When formatting a buffer using %s and either width or precision, I often get the error:

error: string contains zeros

Some example code that lets me reproduce this reliably, but not 100% of the time:

(printf "%1s" @"")
(printf "%.1s" @"")

If I omit both width and precision, I never see the error. I've been able to reproduce this error on Linux (Alpine and Debian Docker images), but not on MacOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions