/[emacs]/emacs/src/coding.c
ViewVC logotype

Diff of /emacs/src/coding.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.239.2.35 by handa, Wed Aug 21 12:53:56 2002 UTC revision 1.239.2.36 by fx, Wed Oct 9 22:00:36 2002 UTC
# Line 1087  detect_coding_utf_8 (coding, mask) Line 1087  detect_coding_utf_8 (coding, mask)
1087  }  }
1088    
1089    
 /* Fixme: deal with surrogates?  */  
1090  static void  static void
1091  decode_coding_utf_8 (coding)  decode_coding_utf_8 (coding)
1092       struct coding_system *coding;       struct coding_system *coding;
# Line 1153  decode_coding_utf_8 (coding) Line 1152  decode_coding_utf_8 (coding)
1152                  {                  {
1153                    c = (((c1 & 0xF) << 12)                    c = (((c1 & 0xF) << 12)
1154                         | ((c2 & 0x3F) << 6) | (c3 & 0x3F));                         | ((c2 & 0x3F) << 6) | (c3 & 0x3F));
1155                    if (c < 0x800)                    if (c < 0x800
1156                          || (c >= 0xd800 && c < 0xe000)) /* surrogates (invalid) */
1157                      goto invalid_code;                      goto invalid_code;
1158                  }                  }
1159                else                else

Legend:
Removed from v.1.239.2.35  
changed lines
  Added in v.1.239.2.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26