Bug 17113 - Option to show whitespaces between textblocks
Summary: Option to show whitespaces between textblocks
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.24
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-04 13:47 UTC by sworddragon2
Modified: 2014-07-07 15:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sworddragon2 2014-07-04 13:47:45 UTC
For example if I'm searching my disk with the strings command all textfiles will be shown without newlines because they are no printable characters. In this case it would be useful (for example for recovery reasons) to have an option that shows all non-printable text-chacacters only if they are between printable characters.
Comment 1 Nick Clifton 2014-07-04 14:58:39 UTC
Hi,

  That sounds a bit too complex.  For example, how many non-printable characters should be displayed ?  How many printable characters are needed before the display of non-printable characters is triggered.  Etc.

  The strings command has been recently enhanced however so that it will now display all whitespace characters, including new-lines, if the --include-all-whitespace option is used.  Perhaps this will help you ?

Cheers
  Nick
Comment 2 sworddragon2 2014-07-05 08:34:56 UTC
> That sounds a bit too complex.  For example, how many non-printable characters
> should be displayed ?

All whitespaces from the first printable character until the next printable character but only if there is no binary character in the way (a character that strings would not show).

The idea is that this option would normally show all whitespaces within text files/occurences but no whitespaces within "binary garbage". This would show whitespaces there they are likely to be wanted and suppress whitespaces there they are normally not useful.


> The strings command has been recently enhanced however so that it will
> now display all whitespace characters, including new-lines, if the
> --include-all-whitespace option is used.  Perhaps this will help you ?

This sounds useful too and I will test it if this version is available on my distribution. But what do you think of my idea?
Comment 3 Nick Clifton 2014-07-07 15:20:34 UTC
Hi,

> This sounds useful too and I will test it if this version is available on my
> distribution. But what do you think of my idea?

Well it is certainly possible, and I can see how it could be useful in 
some situations.  But unfortunately I do not have time to delve into 
implementing it at the moment.  That should not stop anyone else from 
having a go however, and if you feel like writing a patch I will be 
happy to review it.

Cheers
   Nick