Skip to content

Fix non-ASCII SSID characters displayed as \xNN hex in network panel - #6446

Open
richardlences wants to merge 1 commit into
basecamp:quattrofrom
richardlences:fix-non-ascii-ssid
Open

Fix non-ASCII SSID characters displayed as \xNN hex in network panel#6446
richardlences wants to merge 1 commit into
basecamp:quattrofrom
richardlences:fix-non-ascii-ssid

Conversation

@richardlences

@richardlences richardlences commented Jul 30, 2026

Copy link
Copy Markdown

Problem
The connected SSID in the network panel hero area shows \xNN hex escapes (e.g. \xe2\x80\x99) instead of the actual character (') for any byte outside printable ASCII — smart quotes, emoji, accented letters, backslash, and leading/trailing spaces. The available networks list renders these correctly.

Root cause
bin/omarchy-network-status reads the SSID from iw dev <iface> link, which escapes non-printable and non-ASCII bytes via print_ssid_escaped(). The available networks list reads via NetworkManager D-Bus with proper UTF-8 decoding, so it's unaffected.

Fix
Wrap the awk output in printf '%b', a bash builtin that decodes \xNN sequences back to literal bytes. iw already escapes backslashes and edge spaces as \xNN first, so the round-trip is safe — plain ASCII SSIDs pass through unchanged.

image

Wrap awk output in printf '%b' to decode iw's \xNN hex escapes
back to the actual characters.
Copilot AI review requested due to automatic review settings July 30, 2026 17:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants