racket/draw Cocoa: fix (again!) surroate-pair patch for Pango

This commit is contained in:
Matthew Flatt 2014-04-16 18:40:40 -06:00
parent f36e575735
commit 13db06d5df
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit d81690026213e2a1c5c08235e3bf22d4511e987a
Subproject commit 3d8856eb987af16ab27cc99d4d24d5f9e7efc33b

View File

@ -64,7 +64,7 @@ diff -r -u old/pango-1.36.3/modules/basic/basic-coretext.c new/pango-1.36.3/modu
+ gunichar c;
+
+ c = CFStringGetCharacterAtIndex (iter->cstr, iter->current_indices[iter->ct_i]);
+ if ((c & 0xD800) == 0xD800) {
+ if ((c >= 0xD800) && (c <= 0xDFFF)) {
+ /* surrogate pair */
+ gunichar c2;
+ c2 = CFStringGetCharacterAtIndex (iter->cstr, iter->current_indices[iter->ct_i]+1);