X-Git-Url: https://git.saurik.com/apple/cf.git/blobdiff_plain/b0e0750aaee7a1a2cd8e3aa918bd9fc756e9dfcf..cf7d2af96685aba74e84652f9ed1098e9253902e:/CFBuiltinConverters.c diff --git a/CFBuiltinConverters.c b/CFBuiltinConverters.c index 92baa98..af6fb88 100644 --- a/CFBuiltinConverters.c +++ b/CFBuiltinConverters.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Apple Inc. All rights reserved. + * Copyright (c) 2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -21,7 +21,7 @@ * @APPLE_LICENSE_HEADER_END@ */ /* CFBuiltinConverters.c - Copyright 1999-2002, Apple, Inc. All rights reserved. + Copyright (c) 1999-2009, Apple Inc. All rights reserved. Responsibility: Aki Inoue */ @@ -78,7 +78,7 @@ UniChar CFStringEncodingPrecomposeLatinCharacter(const UniChar *character, CFInd ++usedCharLen; } if (usedChars) (*usedChars) = usedCharLen; - return ch; + if (usedCharLen > 1) return ch; } return 0xFFFD; }