Skip to content

Windows panic location mangles backslashes in the source path (\\r, \\t, \\b read as escapes) #1953

Closed

Description

@ehartford

Seen on win10 while reviewing #1863: a panic in W:\review-1863\test\behavior\… prints as panic at W:eview-1863<TAB>estbehavior… — the \r, \t and \b of the path are interpreted as escapes when the location string is built. Cosmetic but misleading; the panic site should print the path bytes as-is.

Activity

  1. added
    bug
    on Oct 2, 2026
  2. ehartford commented on Oct 3, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by 3044b9c (stack #1979, battery green on 029574d). Source locations, FILE and fn names use the raw-literal prefix so backends never decode their escapes; verified on win10.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions