Subversion Repositories Kolibri OS

Rev

Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4921 Rev 6099
Line 72... Line 72...
72
 
72
 
73
  if (s == NULL)
73
  if (s == NULL)
Line 74... Line 74...
74
    return 0; /* UTF-8 encoding is not state-dependent */
74
    return 0; /* UTF-8 encoding is not state-dependent */
75
 
75
 
76
  if (sizeof (wchar_t) == 2 && state->__count == -4
76
  if (sizeof (wchar_t) == 2 && state->__count == -4
77
      && (wchar < 0xdc00 || wchar >= 0xdfff))
77
      && (wchar < 0xdc00 || wchar > 0xdfff))
78
    {
78
    {
79
      /* There's a leftover lone high surrogate.  Write out the CESU-8 value
79
      /* There's a leftover lone high surrogate.  Write out the CESU-8 value
80
	 of the surrogate and proceed to convert the given character.  Note
80
	 of the surrogate and proceed to convert the given character.  Note