Feature #8723

Update WhisperBack configuration for Jessie

Added by alant 2015-01-18 19:24:52 . Updated 2015-01-19 11:21:02 .

Status:
Resolved
Priority:
Normal
Assignee:
alant
Category:
Target version:
Start date:
2015-01-18
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
WhisperBack
Deliverable for:

Description

Strings returned by external command should be decoded with .decode(utf-8) in whisperback configuration file.


Subtasks


History

#1 Updated by alant 2015-01-18 19:27:58

  • Description updated

#2 Updated by alant 2015-01-18 22:59:01

This is what should be modified with current feature/python3 whisperback branch:

@@ -139,7 +139,7 @@
       amnesia_version_process = subprocess.Popen ("tails-version", 
                                                  stdout=subprocess.PIPE)
       amnesia_version_process.wait()
-      amnesia_version = amnesia_version_process.stdout.read()
+      amnesia_version = amnesia_version_process.stdout.read().decode('utf-8')
     except OSError:
       amnesia_version = "tails-version command not found"
     except subprocess.CalledProcessError:
@@ -164,7 +164,7 @@
         process = subprocess.Popen (["sudo", "/usr/local/sbin/tails-debugging-info"], 
                                     stdout=subprocess.PIPE)
         for line in process.stdout:
-            debugging_info += line
+            debugging_info += line.decode('utf-8')
         process.wait()
     except OSError:
         debugging_info += "sudo command not found\n"

#3 Updated by intrigeri 2015-01-18 23:10:54

  • Subject changed from Update whisperback configuration to Update WhisperBack configuration for Jessie
  • Status changed from New to Confirmed
  • Target version set to Tails_2.0
  • Affected tool set to WhisperBack

#4 Updated by Tails 2015-01-19 11:17:59

  • Status changed from Confirmed to In Progress

Applied in changeset commit:f1ec2708b826110f1f134b2bde338a521ffa406d.

#5 Updated by alant 2015-01-19 11:21:03

  • Status changed from In Progress to Resolved