plan9port/src/cmd
Fazlul Shahriar 48da9bd71d fontsrv: copy some fixes from OS X to X11
* Avoid allocating empty images by adding 1 to width/height. This was
  crashing fontsrv. The total width of the subfont image can be zero
  even if the characters are present in the font. For example, all the
  characters in x0300.bit (part of "Combining Diacritical Marks" Unicode
  block) have zero width.
* Make sure U+0000 is always present in the font, otherwise libdraw
  complains with: "stringwidth: bad character set for rune 0x0000 in ..."
* Use the same fallback glyph (pjw face) as OS X. This also fixes a bug
  where advance was set to the total width of subfont instead of the
  character.

Update #125 (most likely fixes the crash if in X11)

Change-Id: Icdc2b641b8b0c08644569006e91cf613b4d5477f
2018-10-05 23:38:31 +02:00
..
9pfuse mount, 9pfuse: detect macports installed osxfuse 2018-03-27 15:01:46 +02:00
9term 9term: Set TERM_PROGRAM to termprog 2018-03-23 10:41:43 +01:00
9660 all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
9660srv all: fix or silence all INSTALL warnings on macOS 2017-01-06 21:37:31 +00:00
acid all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
acidtypes silence more warnings 2012-10-21 12:04:56 -04:00
acme acme: Apply each -/+ only once (#156) 2018-09-19 23:19:36 +10:00
astro all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
auth factotum: Fix an operator precedence bug in the secstore code 2017-05-05 20:04:17 +00:00
auxstats auxstats: get network stats in a portable manner on FreeBSD 2018-01-23 09:00:53 +01:00
awk all: update site from swtch.com to 9fans.github.io 2017-09-01 13:25:20 -04:00
bzip2 silence more warnings 2012-10-21 12:04:56 -04:00
cb try to handle Beof in the macros (Michael Teichgräber) 2007-03-25 18:32:51 +00:00
db libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
devdraw devdraw: fix some memory leaks in x11 2018-03-27 15:03:12 +02:00
dict merge 2007-08-22 09:00:26 -04:00
diff diff: continue after i/o errors when diffing many files 2007-11-05 11:09:39 -05:00
disk disk/mkfs,disk/mkext: fix mkdir conflict 2012-08-05 13:10:47 -04:00
draw mc: fix crash in acme with hidpi display 2018-03-27 15:16:10 +02:00
eqn all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
faces Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
fontsrv fontsrv: copy some fixes from OS X to X11 2018-10-05 23:38:31 +02:00
fossil all: fix or silence all INSTALL warnings on macOS 2017-01-06 21:37:31 +00:00
grap all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
graph no c99 isms 2006-05-31 04:55:43 +00:00
grep grep: update from Plan 9 2018-10-01 17:20:35 +02:00
gzip various: crctab now u32int 2010-02-22 16:54:58 -08:00
hoc all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
htmlfmt Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
htmlroff htmlroff: ignore \X... text; allow delims besides quote 2008-11-11 10:59:48 -08:00
index More troff bits; if you want them elsewhere, feel free to repo copy them. 2004-05-17 03:22:35 +00:00
ip dhcpd: fix build on OS X, silence non-log prints 2009-09-13 17:48:44 -04:00
jpg all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
lex all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
lp Changes. 2005-08-31 02:20:12 +00:00
map all: fix or silence all INSTALL warnings on macOS 2017-01-06 21:37:31 +00:00
mk mk: avoid infinite loop when targets are repeated 2015-08-27 00:36:40 +00:00
mnihongo Goodbye SHORTLIB 2005-01-04 22:10:29 +00:00
mpm all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
ndb fix clang warnings reported by Tuncer Ayaz 2012-10-21 11:25:08 -04:00
netfiles Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
page fix gcc 4.7 warnings (thanks Tuncer Ayaz) 2012-10-20 13:36:52 -04:00
pic all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
plot Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
plumb plumb: remove debugging print 2012-05-15 10:55:53 -04:00
postscript all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
proof darwin 2006-04-21 04:26:02 +00:00
rc rc: use proper type for storing ulimit values 2018-01-17 17:49:47 +01:00
rio include: define _DEFAULT_SOURCE 2016-11-20 09:37:58 +00:00
sam sam: freetmpstr instead of free 2018-03-27 15:03:12 +02:00
samterm samterm: free some getenv results 2018-03-27 15:03:12 +02:00
scat SunOS fixes (thanks Aram Hăvărneanu) 2011-05-17 18:48:42 -04:00
smugfs smugfs: delete debugging prints 2009-07-29 11:28:00 -04:00
snarfer use cocoa on snow leopard 2011-09-26 09:27:55 -07:00
spell Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
svgpic svgpic: fix warnings 2017-09-01 22:37:59 +02:00
tapefs various: crctab now u32int 2010-02-22 16:54:58 -08:00
tbl all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
tcs This patch fixes unicode, unicode-be and unicode-le 2010-06-28 14:43:28 -07:00
tpic all: DragonFly port. 2014-02-27 23:17:47 -05:00
troff all: remove .cvsignore files 2017-09-14 17:25:17 +02:00
troff2html fix again 2007-03-25 17:28:01 +00:00
upas upas/nfs: correctly quote IMAP LOGIN arguments 2018-10-05 18:15:28 +02:00
vac silence more warnings 2012-10-21 12:04:56 -04:00
vbackup vbackup: fix compilation on NetBSD (thanks Álvaro Jurado) 2014-08-06 14:43:21 +02:00
venti venti: fix venti graph on 64-bit 2017-07-23 11:11:56 +00:00
9import.c src/cmd: Add a repurposed import(4), called `9import', to the ports. 2012-09-24 10:35:01 -04:00
9p.c silence more warnings 2012-10-21 12:04:56 -04:00
9pserve.c 9pserve: fix memory leak in warning 2018-03-23 11:55:19 +01:00
acmeevent.c in with the new 2005-01-04 22:30:59 +00:00
ascii.c new utilities. 2003-11-23 18:04:47 +00:00
auxclog.c libc conflict on os x 2007-03-15 17:35:43 +00:00
basename.c new utilities. 2003-11-23 18:04:47 +00:00
bc.y bc: cleanup, make sure to run 9 dc 2008-12-06 16:45:22 -08:00
cal.c new utilities. 2003-11-23 18:04:47 +00:00
calendar.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
cat.c new utilities. 2003-11-23 18:04:47 +00:00
cleanname.c new utilities. 2003-11-23 18:04:47 +00:00
cmp.c new utilities. 2003-11-23 18:04:47 +00:00
col.c col: import from plan 9, by popular demand 2014-10-20 20:41:41 -04:00
comm.c no /fd/0 2005-01-14 20:08:31 +00:00
core.c do not readdir files - from zoltan jarai 2005-01-30 19:45:08 +00:00
date.c new utilities. 2003-11-23 18:04:47 +00:00
dc.c dc: cleanup, fix off-by-one memory error 2008-12-06 16:45:40 -08:00
dd.c all: fix or silence all INSTALL warnings on macOS 2017-01-06 21:37:31 +00:00
delatex.lx merge 2008-01-30 10:30:45 -05:00
deroff.c no wide character constants; sigh 2005-05-07 22:42:06 +00:00
dformat bwk's dformat. 2004-05-16 07:58:31 +00:00
dial.c send output to fd instead of 0 2005-02-11 16:42:48 +00:00
du.c cmd: rename *.C to *.c 2014-11-17 11:21:06 -05:00
echo.c new utilities. 2003-11-23 18:04:47 +00:00
ed.c ed: allow larger temp files 2017-09-01 12:06:25 -04:00
factor.c new utilities. 2003-11-23 18:04:47 +00:00
file.c x3f support 2008-10-08 21:16:13 -05:00
fmt.c fmt: delete 2-space code 2012-01-05 01:02:44 -05:00
fortune.c have lrand now 2005-01-04 21:25:26 +00:00
freq.c freq: fix crash with utf > 0xffff (thanks Andrey Mirtchovski) 2013-01-04 20:06:08 +01:00
fsize.c new utilities. 2003-11-23 18:04:47 +00:00
getflags.c getflags: use shell quoting 2010-10-07 03:35:43 -04:00
hget.c hget: use absolute url for POST through a proxy 2010-06-28 14:37:26 -07:00
hist.c apple 2005-07-13 21:34:11 +00:00
idiff.c lib9: add mode parameter to opentemp 2008-07-10 11:10:10 -04:00
import.c import: clean up correctly 2010-11-03 15:49:22 -04:00
join.c fix gcc 4.8 warnings 2014-03-03 22:30:34 +01:00
listen1.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
look.c no wide character constants; sigh 2005-05-07 22:42:06 +00:00
ls.c cmd: rename *.C to *.c 2014-11-17 11:21:06 -05:00
md5sum.c cmd: rename *.C to *.c 2014-11-17 11:21:06 -05:00
mkdir.c cmd: rename *.C to *.c 2014-11-17 11:21:06 -05:00
mkfile src/cmd: take fontsrv out of BUGGERED 2017-01-07 18:18:46 +00:00
mtime.c add new guys 2004-04-21 23:22:06 +00:00
namespace.c Add namespace.c 2004-03-21 14:07:19 +00:00
netkey.c changes 2005-02-11 19:51:21 +00:00
news.c Many small edits. 2005-01-13 04:49:19 +00:00
p.c use tty 2004-04-24 05:22:42 +00:00
pbd.c Add tcs; it compiles in my world, but I haven't tried it in Russ's yet. 2004-04-21 01:15:41 +00:00
pr.c os x changes 2005-01-11 17:43:53 +00:00
primes.c primes: faster output 2011-06-28 18:58:44 -04:00
ramfs.c silence more warnings 2012-10-21 12:04:56 -04:00
read.c in with the new 2005-01-04 22:30:59 +00:00
readcons.c new program readcons 2005-02-13 18:03:41 +00:00
resample.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rm.c Many small edits. 2005-01-13 04:49:19 +00:00
sed.c convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
seq.c new seq from plan 9 (Anthony Martin) 2006-10-12 01:42:11 +00:00
sftpcache.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
sha1sum.c new utilities. 2003-11-23 18:04:47 +00:00
sleep.c new utilities. 2003-11-23 18:04:47 +00:00
sort.c sort: use noted(NDFLT) in note handler 2008-06-01 08:26:10 -04:00
split.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
srv.c misc: more post9pservice callers 2008-05-07 12:55:48 -04:00
strings.c no /fd/ 2005-11-12 16:43:07 +00:00
sum.c new utilities. 2003-11-23 18:04:47 +00:00
tail.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
tar.c tar: rename sstrnlen to avoid OpenBSD compile error 2010-07-11 09:48:51 -07:00
tee.c new utilities. 2003-11-23 18:04:47 +00:00
test.c test: update from Plan 9 2011-08-16 16:11:48 -04:00
time.c Fix small bugs. 2004-05-11 17:51:27 +00:00
touch.c print error if changing time fails 2007-05-20 14:37:29 +00:00
tr.c tr: 32-bit rune fixes 2011-01-02 18:42:25 -05:00
unicode.c convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
uniq.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
units.y Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
unutf.c Add the #goo to allow use in C++. 2003-11-25 01:40:27 +00:00
usage.c move files that codebot put in the wrong place 2009-08-14 20:38:22 -07:00
wc.c wc: 4-byte utf-8 capable (Erik Quanstrom) 2010-12-07 23:15:22 -05:00
xd.c xd: add -R for runewise dump 2017-10-01 11:46:06 +02:00
yacc.c yacc: Fix a bug from at least 1995. 2017-04-21 14:09:47 +00:00
zerotrunc.c zerotrunc: from Plan 9 2011-08-16 16:11:56 -04:00