Public bug reported:

When non-ascii characters are present, netplan status will not decode
them properly.

# netplan status
Error: netplan-wlp2s0-??????????o - no such connection profile.
WARNING:root:Cannot query NetworkManager SSID for netplan-wlp2s0-??????????o: 
Command '['nmcli', '--get-values', '802-11-wireless.ssid', 'con', 'show', 'id', 
'netplan-wlp2s0-??????????o']' returned non-zero exit status 10.
Error: netplan-wlp2s0-??????????o - no such connection profile.
WARNING:root:Cannot query NetworkManager SSID for netplan-wlp2s0-??????????o: 
Command '['nmcli', '--get-values', '802-11-wireless.ssid', 'con', 'show', 'id', 
'netplan-wlp2s0-??????????o']' returned non-zero exit status 10.
     Online state: online
    DNS Addresses: 127.0.0.53 (stub)
       DNS Search: .

●  1: lo ethernet UNKNOWN/UP (unmanaged)
      MAC Address: 00:00:00:00:00:00
        Addresses: 127.0.0.1/8
                   ::1/128
                   ::1 metric 256

●  3: wlp2s0 
wifi/"\303\241\303\251\303\255\303\263\303\272\302\242\302\242\302\242\303\247\303\243o"
 UP (NetworkManager: wlp2s0-??????????o)
      MAC Address: 5c:c9:d3:6d:f3:ff (Qualcomm Atheros)
        Addresses: 10.42.0.203/24
                   fe80::5ec9:d3ff:fe6d:f3ff/64 (link)
    DNS Addresses: 10.42.0.1
           Routes: default via 10.42.0.1 metric 600 (dhcp)
                   10.42.0.0/24 from 10.42.0.203 metric 600 (link)
                   fe80::/64 metric 256

1 inactive interfaces hidden. Use "--all" to show all.

----

Those characters are decoded correctly by the netplan generator and
netplan get. In this example it's an access-point with SSID and password
"áéíóú¢¢¢ção". The connection works fine on both networkd and
NetworkManager, only the rendering from netplan status seems to be
affected.

It was tested on Jammy with netplan.io 0.107.1-3ubuntu0.22.04.1

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2079975

Title:
  netplan status: encoding issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2079975/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to