Plan 9 from Bell Labs’s /usr/web/sources/patch/maybe/tweaknil/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


i didn't double check if Runemax has made it into
libc.h.  i think it makes sense, even for 16-bit runes since
Bgetc returns an int.  and cases like this where a rune
value is calculated as an int to protect against overflow.
this patch depends on Runemax.

1.  fix output bug.  for character 0, the output was truncated
because %C formats a 0 character, terminating the string.
also defend against illegal utf values.

2.  add -b baseoff to correct the character values for subfonts
that don't start at character 0.  while this is a hack (we should
parse font(6) files instead so that each subfont could be
discontinuous with this previous), it does make viewing a single
subfont possible with much less work.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].