diff options
-rw-r--r-- | src/cmd/fontsrv/osx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c index 2c88fd55..d1a31837 100644 --- a/src/cmd/fontsrv/osx.c +++ b/src/cmd/fontsrv/osx.c @@ -26,6 +26,8 @@ mapUnicode(int i) case '`': return 0x2018; } + if(0xd800 <= i && i < 0xe0000) // surrogate pairs, will crash OS X libraries! + return 0xfffd; return i; } |