Bug 351517

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

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.
Comment 2 Christoph Cullmann 2025-06-10 16:48:53 UTC
This project is unfortunately no longer maintained.

If a new maintainer wants to step up and take care, the project is archived here:

https://invent.kde.org/unmaintained/kdesudo

You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived.

Sorry for the inconveniences.