commit | c499ab911db8afefa197988c796331697c06219b | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@swtch.com> | Fri Jan 22 06:50:38 2016 -0500 |
committer | Russ Cox <rsc@swtch.com> | Fri Jan 22 11:52:32 2016 +0000 |
tree | ae941e4287e67aa293eb4a16a65833bf889023fc | |
parent | 009b0cb5eb340b8bc3268bfaeb86abfeffdc1b1c [diff] |
fontsrv: do not try to look up surrogate pairs Change-Id: Ib0a680e123ba02b41e1029e356543c24e8b4647e Reviewed-on: https://plan9port-review.googlesource.com/1430 Reviewed-by: Russ Cox <rsc@swtch.com>
diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c index 2c88fd5..d1a3183 100644 --- a/src/cmd/fontsrv/osx.c +++ b/src/cmd/fontsrv/osx.c
@@ -26,6 +26,8 @@ case '`': return 0x2018; } + if(0xd800 <= i && i < 0xe0000) // surrogate pairs, will crash OS X libraries! + return 0xfffd; return i; }