kdesudo double encodes the output

Bug #1398740 reported by Victor on 2014-12-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KdeSudo
Undecided
Unassigned

Bug Description

$ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=

$ kdesudo locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=

$ date
Сб. нояб. 29 12:01:26 MSK 2014

$ sudo date
[sudo] password for vic:
Сб. нояб. 29 12:01:30 MSK 2014

$ kdesudo date
Сб. ноÑб. 29 12:01:33 MSK 2014

$ kdesudo date | hexdump
0000000 90c3 9fc2 90c3 bdc2 202e 90c3 b4c2 90c3
0000010 b5c2 90c3 bac2 202e 3120 3120 3a34 3631
0000020 303a 2031 534d 204b 3032 3431 000a
000002d

$ sudo date | hexdump
0000000 9fd0 bdd0 202e b4d0 b5d0 bad0 202e 3120
0000010 3120 3a34 3631 323a 2030 534d 204b 3032
0000020 3431 000a
0000023

$ kdesudo date
Ðн. дек. 1 14:14:22 MSK 2014

$ kdesudo date | ./fix.py
Пн. дек. 1 14:14:25 MSK 2014

$ cat fix.py
#! /usr/bin/env python3
import sys

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

More info here: https://forum.kde.org/viewtopic.php?f=225&t=123725

Jonathan Riddell (jr) wrote :

kdesudo has moved to KDE infrastructure.

If you feel your bug is still relevant please open a new bug on bugs.kde.org

https://bugs.kde.org/describecomponents.cgi?product=kdesudo

Changed in kdesudo:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.