! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
"Save contents" saves terminal content as binary
Status:
RESOLVED: INVALID
Product:
Xfce4-terminal
Component:
General

Comments

Description Antti Ahti 2017-04-11 07:26:24 CEST
"Save contents" action saves the content of the terminal as a binary file. This causes that you can't use some common text tools, like grep or geany, on the output file.

To reproduce:

1. Open xfce4-terminal
2. In the menu select Terminal > Save Contents...
3. Save the file with name "outputfile"
4. Try to run "grep foo outputfile"

Actual result:
❯ grep foo outputfile 
Binary file outputfile matches

Expected result:
Normal grep output for text files.
Comment 1 Igor editbugs 2017-04-11 15:27:11 CEST
Hi Antti, I cannot reproduce it here.
Does it always save terminal contents as a binary file for you? E.g., can you try a very short text output?
Have you configured your $PS1 in some fancy way that could add some non-printable chars to the output (just wild guessing)?
Comment 2 Antti Ahti 2017-04-12 13:34:31 CEST
You guessed right. I'm using https://github.com/Bash-it/bash-it that uses some fancy formatting.

The Save contents works fine when I disable Bash-it.

I suppose this bug report can be closed.
Comment 3 Igor editbugs 2017-04-12 14:08:48 CEST
Thanks for the update, closing.

Bug #13490

Reported by:
Antti Ahti
Reported on: 2017-04-11
Last modified on: 2017-04-12

People

CC List:
1 user

Version

Attachments

Additional information