Skip to content

Viewing a specific issue returns the error invalid character '^' in string escape code #8336

Closed
cli/go-gh
#145

Description

@b-per

Describe the bug

gh version 2.39.1 (2023-11-14)
https://github.com/cli/cli/releases/tag/v2.39.1

gh crashes when running the following:

gh issue view 589 -R dbt-labs/dbt-snowflake

The error is invalid character '^' in string escape code

It is true that the issue contains some weird characters.

I recently updated gh and I don't think that I add this problem before.

Steps to reproduce the behavior

see above

Expected vs actual behavior

I'd expect gh to not crash

Logs

N/A

Activity

  1. added
    bug
    on Nov 15, 2023
  2. added
    needs-triage
    on Nov 15, 2023
  3. samcoe commented on Nov 17, 2023

    @samcoe
    Contributor

    @b-per Sorry you are experiencing this issue. I was able to reproduce it. It appears that some sequence of characters in the issue are causing our ascii sanitization code to fail. Our team will need to do some investigation into why this is happening.

  4. added
    priority-3
    gh-pr
    needs-investigation
    and removed
    needs-triage
    needs-investigation
    on Nov 17, 2023
  5. Aimanamir1808 commented on Jan 15, 2024

    @Aimanamir1808
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

    buggh-prpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions