Skip to content
Topaz6.0 · Before release
Download

Search documentation

Specification 6.0 · Not released · Tested product 5.21.3

Use arrow keys to choose a result. Press Enter to open.

Type an API name, diagnostic number, rule, or project topic.

    Diagnostics

    TPZ4008 Host input failure

    A host input failure produces TPZ4008 at the readStdin call.

    Diagnostic and cause

    Link

    Host input failure

    Family
    topaz
    Phase
    run
    Code
    TPZ4008
    Operation
    std.io.readStdin

    Cause and conditions

    readStdin reads the remaining standard input bytes through EOF. UTF-8 validity and text preservation follow UTF-8 decoding. It does not append or remove a newline.

    No remaining bytes produces an empty string. A later call reads from the stream position left by the earlier call and therefore returns an empty string at EOF. A terminal follows the same EOF rule as redirected input.

    The call may wait for input or EOF. Reading consumes input even when the result is later discarded. A host read failure or invalid UTF-8 produces a structured runtime fault at the readStdin call because the function returns a string rather than a Result.

    The Topaz 6.0 host input fault is TPZ4008. Its primary location is the readStdin call.

    Response

    Provide valid UTF-8 through a readable input stream. Keep input recovery in the embedding host until structured fault production is available.

    Source evidence

    Topaz 6.0.0 specifies this diagnostic during runtime.

    The product message wording awaits owner approval.

    The pinned SELF source does not emit this diagnostic.

    A failed host read or invalid UTF-8 produces a structured runtime fault at the readStdin call. The input operation consumes host bytes and validates their text encoding. The standard input contract defines consumption and valid text preservation.

    Response

    Link

    Provide valid UTF-8 through a readable input stream. Keep input recovery in the embedding host until structured fault production is available.

    Reproduction and verification

    Link

    Menu

    Download