Bug 351517

Summary: kdesudo double encodes the output
Product: [Applications] kdesudo Reporter: Victor Varvaryuk <victor.varvariuc>
Component: generalAssignee: Jonathan Riddell <jr>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://forum.kde.org/viewtopic.php?f=225&t=123725
Latest Commit: Version Fixed In:

Description Victor Varvaryuk 2015-08-20 12:41:45 UTC
Looks like kdesudo double encodes the output. This can be fixed with

#! /usr/bin/env python3
import sys

for line in sys.stdin:
    sys.stdout.write(line.encode('raw_unicode_escape').decode("utf-8"))


Reproducible: Always

Steps to Reproduce:
$ sudo sh -c "echo привет"                                                 
привет

$ kdesudo sh -c "echo привет"
пÑивеÑ

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.10
Release:        14.10
Codename:       utopic


Kubuntu 15.10: exactly the same
Comment 1 Justin Zobel 2021-03-09 23:42:29 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.