Bug 17541 - man7/*.7: off-by-one errors in some encoding tables
Summary: man7/*.7: off-by-one errors in some encoding tables
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 07:06 UTC by Denis Barbier
Modified: 2010-09-10 05:21 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Patch to fix decimal values in encoding tables (34.97 KB, patch)
2010-08-31 07:06 UTC, Denis Barbier
Details | Diff

Description Denis Barbier 2010-08-31 07:06:06 UTC
Created attachment 28591 [details]
Patch to fix decimal values in encoding tables

Octal and hexadecimal values are right, but there are some off-by one
errors in decimal values, e.g. several files contain lines
  oct  dec  hex  description
  377  254  ff   RIGHT SINGLE QUOTATION MARK
instead of
  377  255  ff   RIGHT SINGLE QUOTATION MARK

Correct values are printed by this command:

  perl -pi -e 'if (s/^([0-7]+)\t([0-9]+)\t([0-9a-fA-F]+)//)
    {printf "%03o\t%d\t%s", hex($3), hex($3), $3;};' man7/*.7

A patch is attached, this is the same file I already sent to the linux-man mailing list 
  http://www.spinics.net/lists/linux-man/msg01197.html

It would also be better IMHO to recode all these pages into UTF-8.
Comment 1 Michael Kerrisk 2010-09-09 06:03:57 UTC
Applied for man-pages 3.27. Thanks for the patch Denis.

Note You need to log in before you can comment on or make changes to this bug.