reddit / emacs

The "woman" manual viewing utility is stripping dashes from ranges. Is that a known bug?

vfclists · 2022-08-25 15:37
I am viewing crontab(5) with `woman` and I notices that the dashes in number ranges are stripped out. My Emacs buiild is 27.1 This is a sample of what is displayed field allowed values ----- -------------- minute 059 hour 023 day of month 131 month 112 (or names, see below) day of week 07 (0 or 7 is Sun, or use names) instead of field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names) Is it a known thing, or could it just be bug in my system?
apfelkuchen06 · 2022-08-25 16:20
so you can't run cron jobs on leap seconds? My disappointment is immeasurable and my day is ruined.
TrisMcC · 2022-08-25 16:33
This does not happen on my system. The time and date fields are: field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sunday, or use names) A field may contain an asterisk (*), which always stands for "first-last".
lebensterben · 2022-08-25 16:34
cannot reproduce on 28.1
organic-bookworm · 2022-08-25 18:26
Confirm for Emacs 29.0.50 master `0a8e88fd8`. The `*WoMan-Log*` buffer says ** Special character (en not interpolated! In the source of `crontab` man minute 0\(en59
dimsuz · 2022-08-25 20:14
If woman is stripping that couldn't be a bug.
puntinoh · 2022-08-26 11:55
I suggest to check your fonts. Maybe it's trying to display the dash as an Unicode one.
vfclists · 2022-09-26 11:15
I can reproduce it on Emacs 28.2, both on a vanilla and a Doom installation.
vfclists · 2022-09-26 11:17
How do I go about this? My font is DejaVu Sans Mono. I get the problem in terminal Emacs as well
vfclists · 2022-09-26 11:42
Is there a link to this bug or commit?
organic-bookworm · 2022-09-26 12:23
I didn't report a bug. But, I think, the source of the issue was [`woman-special-characters`](https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/woman.el#n2871) lacking mapping.
vfclists · 2022-09-26 12:27
I take it that I can fix this for myself if I know what lines to add or change in this file?