-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viewer in hex mode sometimes shows "-" incorrectly #3901
Comments
|
Open with Shift+F3, or press F8 to switch to Raw mode and it's displayed as 2D as expected.
E2 80 90 is U+2010 Hyphen, as probably the *roff pipeline interpreting and converting the file (believing it's a manpage due to its ".2" extension). |
This explains it, but only partially: How can this depend on the directory in which the file resides?
Furthermore, I think that "Hex" _always_ should use the "raw" file (at least by default)
In general, it might be helpful and avoid confusion if mc would indicate it somehow |
Replying to psch:
ext.d/text.sh seems to provide the explanation at the top of do_view_action(). If the file looks like a manual page (based on its extension I guess) then checks if it's under a "log" or "logs" directory. If so, it simply cats it, otherwise sends through manpage formatting. This is probably in order to filter out logrotate files (under /var/log and similar standard places) from being mishandled as manpages.
Independently of this particular issue, this may (or may not, up to discussion) be a valid feature request.
Or, we might think of whitelisting directories potentially containing manpages, instead of blacklisting the log ones.
You can see it in the bottom at "8 Raw". Not sure what could / should be a more prominent way of showing it.
(On a somewhat related note:
I loathe that user interface designers have for decades failed to figure out whether a button should show the current state, or the state it switches to. E.g. in mcview's F2, F8 and F9 in the bottom bar, I'm always getting confused as it displays what the button would take me to, it would be much more intuitive _for me_ to see the current status.
Look at youtube videos. The play/pause button shows what it would do, that is, the opposite of the current playing/paused state. Second next to that, the volume button shows whether speakers are enabled or disabled at the moment, that is, the opposite of what pressing the button does.
There are sure zillions of other similar examples...) |
Important
This issue was migrated from Trac:
zaytsev
(@zyv)egmont
(@egmontkob)Forwarded from Ubuntu bug tracker:
https://bugs.launchpad.net/ubuntu/+source/mc/+bug/1750239
I could reproduce this on mc 4.8.20 with the attached sample.
Note
Original attachments:
zaytsev
(@zyv) onFeb 18, 2018 at 19:11 UTC
The text was updated successfully, but these errors were encountered: