mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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>
This commit is contained in:
parent
009b0cb5eb
commit
c499ab911d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue