]> git.wh0rd.org Git - fontconfig.git/commitdiff
632. Finish off the UTF-16 APIs in Xft, and fix the UTF-16 conversion code
authorDavid Dawes <dawes@xfree86.org>
Sat, 14 Dec 2002 01:59:38 +0000 (01:59 +0000)
committerDavid Dawes <dawes@xfree86.org>
Sat, 14 Dec 2002 01:59:38 +0000 (01:59 +0000)
    in fontconfig (#A.1411, Keith Packard, Jungshik Shin).

src/fcstr.c

index efb82e1358ad957586fe391bb9df89f76ca0d903..a51be35b71932e41aca74b5b614873ff0b4917e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $XFree86: xc/lib/fontconfig/src/fcstr.c,v 1.7 2002/07/13 05:43:25 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fcstr.c,v 1.10 2002/08/31 22:17:32 keithp Exp $
  *
  * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
  *
@@ -283,7 +283,7 @@ FcUtf16ToUcs4 (const FcChar8        *src_orig,
        if ((b & 0xfc00) != 0xdc00)
            return 0;
        result = ((((FcChar32) a & 0x3ff) << 10) |
-                 ((FcChar32) b & 0x3ff)) | 0x10000;
+                 ((FcChar32) b & 0x3ff)) + 0x10000;
     }
     else
        result = a;