comparison src/buffer.c @ 107311:cdeadbfdda61

buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte form of raw-bytes.
author Kenichi Handa <handa@m17n.org>
date Tue, 02 Mar 2010 10:30:52 +0900
parents 4040ecb0c904
children 772da445ced7 fc5ebbbba4f3
comparison
equal deleted inserted replaced
107308:e2efddfebd89 107311:cdeadbfdda61
2495 stop = Z; 2495 stop = Z;
2496 } 2496 }
2497 2497
2498 if (ASCII_BYTE_P (*p)) 2498 if (ASCII_BYTE_P (*p))
2499 p++, pos++; 2499 p++, pos++;
2500 else if (EQ (flag, Qt) && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0) 2500 else if (EQ (flag, Qt)
2501 && ! CHAR_BYTE8_HEAD_P (*p)
2502 && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0)
2501 p += bytes, pos += bytes; 2503 p += bytes, pos += bytes;
2502 else 2504 else
2503 { 2505 {
2504 unsigned char tmp[MAX_MULTIBYTE_LENGTH]; 2506 unsigned char tmp[MAX_MULTIBYTE_LENGTH];
2505 int c; 2507 int c;