Bug 351517 - kdesudo double encodes the output
Summary: kdesudo double encodes the output
Status: REPORTED
Alias: None
Product: kdesudo
Classification: Applications
Component: general (show other bugs)
Version: 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: 2021-03-09 23:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


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.