Skip to content

[BUG] unicode/charset conversion, terminal command-line #8938

@drzraf

Description

@drzraf

Problem (one or two sentences)

When Claude runs the python interpret with an inline command containing an UTF-8 character, it trigger an error in Codium's terminal

Running

python3 << 'EOF'
print(" → foo")

EOF

SyntaxError: Non-UTF-8 code starting with '\x86' in file <stdin> on line 1, but no encoding declared; see https://peps.python.org/pep-0263/ for details

Copy/pasted in my regular terminal, it just works, so it's about roo-code passing (or the terminal receiving) the command-line that something weird happens.

Same with command as an argument (below screenshot)

Image

Context (who is affected and when)

Running a UTF-8 commands in the terminal

Reproduction steps

  1. Input the following:

Run python -c 'print(" → foo")'

Expected result

The command runs

Actual result

bad charset conversion garble the command line (or the Python code)

Variations tried (optional)

No response

App Version

0.0.6975

API Provider (optional)

Anthropic

Model Used (optional)

claude-4.5-sonnet

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Nothing in apparmor's log (codium is heavily sandbox)

But I don't see any obvious reason an otherwise functioning embedded terminal would experience this specific charset problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions