Bug 351517 - kdesudo double encodes the output
Summary: kdesudo double encodes the output
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdesudo
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Riddell
URL: https://forum.kde.org/viewtopic.php?f...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 12:41 UTC by Victor Varvaryuk
Modified: 2025-06-10 16:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.