Commit 45fb31aa authored by David Dawes's avatar David Dawes

632. Finish off the UTF-16 APIs in Xft, and fix the UTF-16 conversion code

    in fontconfig (#A.1411, Keith Packard, Jungshik Shin).
parent dbc56f0b
/*
* $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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment