diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-24 22:21:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-24 22:21:52 +0000 |
commit | c01140a1a069caf3ced83eac7d4866048c4b723e (patch) | |
tree | 0620c08894dcaf985d74e3cb76c682aecd7fb8ae /src/fileio.c | |
parent | db552d60ec4613d5537d3ebdcc4130f1591c0589 (diff) | |
download | vim-git-c01140a1a069caf3ced83eac7d4866048c4b723e.tar.gz |
updated for version 7.0b
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index a5fdfb71d..cf14c519b 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1432,7 +1432,6 @@ retry: if (fio_flags & FIO_CODEPAGE) { char_u *src, *dst; - int u8c; WCHAR ucs2buf[3]; int ucs2len; int codepage = FIO_GET_CP(fio_flags); @@ -1496,7 +1495,8 @@ retry: } else { - u8c = utf_ptr2char(src); + int u8c = utf_ptr2char(src); + if (u8c > 0xffff || (*src >= 0x80 && bytelen == 1)) found_bad = TRUE; ucs2buf[0] = u8c; |