mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
improve comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23008 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c152566da3
commit
5f6a4dda84
1 changed files with 3 additions and 1 deletions
|
@ -1910,7 +1910,9 @@ GSFromUnicode(unsigned char **dst, unsigned int *size, const unichar *src,
|
|||
{
|
||||
u1 = (((u1 & 0xff00) >> 8) + ((u1 & 0x00ff) << 8));
|
||||
}
|
||||
if (u1 == 0xfffe || u1 == 0xffff // unexpcted BOM
|
||||
// 0xfeff is a zero-width-no-break-space inside text (not a BOM).
|
||||
if (u1 == 0xfffe // unexpected BOM
|
||||
|| u1 == 0xffff // not a character
|
||||
|| (u1 >= 0xfdd0 && u1 <= 0xfdef) // invalid character
|
||||
|| (u1 >= 0xdc00 && u1 <= 0xdfff)) // bad pairing
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue